Skip to content

Commit

Permalink
file set should come sooner
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Aug 5, 2024
1 parent cfdb897 commit 6cd2817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Installing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ set(INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
install(TARGETS ${PROJECT_NAME}
EXPORT "${PROJECT_NAME}Targets"
FILE_SET public_headers
# these get default values from GNUInstallDirs, no need to set them
#RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/debug # lib/debug
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/debug # lib/debug
# except for public headers, as we want them to be inside a library folder
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} # include/str_view
FILE_SET public_headers
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} # include
)
else()
install(TARGETS ${PROJECT_NAME}
EXPORT "${PROJECT_NAME}Targets"
FILE_SET public_headers
# these get default values from GNUInstallDirs, no need to set them
#RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # lib
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # lib
# except for public headers, as we want them to be inside a library folder
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} # include/str_view
FILE_SET public_headers
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} # include
)
endif()
Expand Down

0 comments on commit 6cd2817

Please sign in to comment.