File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.7.2)
2- project (ghcfilesystem)
2+ project (
3+ ghcfilesystem,
4+ VERSION 1.5.13
5+ )
36
47if (POLICY CMP0077)
58 cmake_policy (SET CMP0077 NEW)
@@ -70,7 +73,16 @@ if(GHC_FILESYSTEM_WITH_INSTALL)
7073 "${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config.cmake"
7174 INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR} /cmake/ghc_filesystem"
7275 PATH_VARS CMAKE_INSTALL_INCLUDEDIR)
73- install (FILES "${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config.cmake"
74- DESTINATION "${CMAKE_INSTALL_LIBDIR} /cmake/ghc_filesystem" )
76+ write_basic_package_version_file(
77+ "${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config-version.cmake"
78+ VERSION ${PROJECT_VERSION}
79+ COMPATIBILITY SameMinorVersion
80+ )
81+ install (
82+ FILES
83+ "${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config.cmake"
84+ "${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config-version.cmake"
85+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /cmake/ghc_filesystem"
86+ )
7587 add_library (ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
7688endif ()
You can’t perform that action at this time.
0 commit comments