Skip to content

Commit

Permalink
CMake: Install GrabGitRef.cmake.in, needed for superprojects
Browse files Browse the repository at this point in the history
Also, print CMAKE_INSTALL_PREFIX in report_build_info()
  • Loading branch information
hansenjo committed Nov 6, 2022
1 parent 1acbc11 commit a0613dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
31 changes: 17 additions & 14 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
# Install project-specific modules and scripts. The module directory will be
# appended to CMAKE_MODULE_PATH when loading this project's configuration file
#
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Modules)
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/Modules
DESTINATION ${INSTALL_CONFIGDIR}
PATTERN "PoddCreate*.cmake" EXCLUDE
)
endif()
install(DIRECTORY
${CMAKE_CURRENT_LIST_DIR}/Modules
DESTINATION ${INSTALL_CONFIGDIR}
PATTERN "PoddCreate*.cmake" EXCLUDE
)

if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts)
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/scripts
DESTINATION ${INSTALL_CONFIGDIR}
USE_SOURCE_PERMISSIONS
)
endif()
install(DIRECTORY
${CMAKE_CURRENT_LIST_DIR}/scripts
DESTINATION ${INSTALL_CONFIGDIR}
USE_SOURCE_PERMISSIONS
)

install(DIRECTORY
${CMAKE_CURRENT_LIST_DIR}/templates
DESTINATION ${INSTALL_CONFIGDIR}
USE_SOURCE_PERMISSIONS
FILES_MATCHING PATTERN "GrabGitRef.cmake.in"
)

#----------------------------------------------------------------------------
# Create <Project>Config.cmake and <Project>ConfigVersion.cmake
Expand Down
1 change: 1 addition & 0 deletions cmake/Modules/PoddCMakeEnv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ function(report_build_info)
endif()
message(STATUS "${PROJECT_NAME_UC}_CXX_FLAGS = ${${PROJECT_NAME_UC}_CXX_FLAGS} ${${PROJECT_NAME_UC}_DIAG_FLAGS}")
message(STATUS "CMAKE_CXX_STANDARD = ${CMAKE_CXX_STANDARD}")
message(STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}")
if(CMAKE_INSTALL_RPATH)
message(STATUS "CMAKE_INSTALL_RPATH = ${CMAKE_INSTALL_RPATH}")
endif()
Expand Down

0 comments on commit a0613dc

Please sign in to comment.