File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ include(CMakeFindDependencyMacro)
66
77find_dependency (Boost REQUIRED )
88
9- set_and_check (ystdlib_INCLUDE_DIR "@PACKAGE_ystdlib_INSTALL_INCLUDE_DIR@" )
10-
119check_required_components (ystdlib )
1210
1311# Avoid repeatedly including the targets
Original file line number Diff line number Diff line change @@ -82,9 +82,6 @@ if(ystdlib_ENABLE_TESTS)
8282 catch_discover_tests (${UNIFIED_UNIT_TEST_TARGET} WORKING_DIRECTORY ${CMAKE_BINARY_DIR } /testbin )
8383endif ()
8484
85- set (ystdlib_INSTALL_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR} /cmake/ystdlib)
86- set (ystdlib_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR} )
87-
8885add_subdirectory (src/ystdlib )
8986
9087set (ystdlib_targets
@@ -107,14 +104,13 @@ foreach(install_target_name IN LISTS ystdlib_targets)
107104 )
108105endforeach ()
109106
107+ set (ystdlib_INSTALL_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR} /cmake/ystdlib)
110108install (EXPORT ystdlib-targets NAMESPACE ystdlib:: DESTINATION ${ystdlib_INSTALL_CONFIG_DIR} )
111109
112110configure_package_config_file (
113111 ${CMAKE_CURRENT_LIST_DIR } /CMake/ystdlib-config.cmake.in
114112 ${CMAKE_CURRENT_BINARY_DIR } /ystdlib-config.cmake
115113 INSTALL_DESTINATION ${ystdlib_INSTALL_CONFIG_DIR}
116- PATH_VARS
117- ystdlib_INSTALL_INCLUDE_DIR
118114)
119115
120116write_basic_package_version_file (
You can’t perform that action at this time.
0 commit comments