Skip to content

Commit

Permalink
Make corrosion_install only install HEADERS file set
Browse files Browse the repository at this point in the history
  • Loading branch information
Gtker committed Aug 12, 2024
1 parent aa4453c commit eaff004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/Corrosion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1412,8 +1412,8 @@ set_target_properties(${INSTALL_TARGET}-shared
set(CONFIGURATIONS)
endif()

get_target_property(HEADER_SETS ${INSTALL_TARGET} INTERFACE_HEADER_SETS)
if(NOT HEADER_SETS OR HEADER_SETS MATCHES .*-NOTFOUND)
get_target_property(FILE_SET ${INSTALL_TARGET} INTERFACE_HEADER_SETS)
if(NOT FILE_SET OR FILE_SET MATCHES .*-NOTFOUND)
set(TARGET_HAS_FILE_SET FALSE)
else()
set(TARGET_HAS_FILE_SET TRUE)
Expand Down Expand Up @@ -1445,7 +1445,7 @@ set_target_properties(${INSTALL_TARGET}-shared
install(
TARGETS ${INSTALL_TARGET}
${EXPORT_NAME}
FILE_SET ${HEADER_SETS}
FILE_SET HEADERS
DESTINATION ${DESTINATION}
PERMISSIONS ${PERMISSIONS}
${CONFIGURATIONS}
Expand Down

0 comments on commit eaff004

Please sign in to comment.