File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,9 +162,10 @@ function(packageProject)
162162
163163 mark_as_advanced ("${PROJECT_NAME} _INSTALL_CMAKEDIR" )
164164
165- configure_file (
165+ configure_package_config_file (
166166 ${PACKAGE_PROJECT_ROOT_PATH} /Config.cmake.in
167- "${PROJECT_BINARY_DIR} /${PROJECT_NAME_LOWER} -config.cmake" @ONLY
167+ "${PROJECT_BINARY_DIR} /${PROJECT_NAME_LOWER} -config.cmake"
168+ INSTALL_DESTINATION "${${PROJECT_NAME} _INSTALL_CMAKEDIR}"
168169 )
169170
170171 install (
Original file line number Diff line number Diff line change 1+ @PACKAGE_INIT@
2+
13include (CMakeFindDependencyMacro )
24
35# ##################################################################################################
@@ -39,3 +41,9 @@ foreach(dependency ${SEPARATE_DEPENDENCIES})
3941endforeach ()
4042
4143include ("${CMAKE_CURRENT_LIST_DIR} /@PROJECT_NAME@Targets.cmake" )
44+
45+ # ##################################################################################################
46+ # Final checks
47+ # ##################################################################################################
48+
49+ check_required_components ("${PROJECT_NAME} " )
You can’t perform that action at this time.
0 commit comments