File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.7.2)
2
- project (ghcfilesystem)
2
+ project (
3
+ ghcfilesystem,
4
+ VERSION 1.5.13
5
+ )
3
6
4
7
if (POLICY CMP0077)
5
8
cmake_policy (SET CMP0077 NEW)
@@ -70,7 +73,16 @@ if(GHC_FILESYSTEM_WITH_INSTALL)
70
73
"${PROJECT_BINARY_DIR} /cmake/ghc_filesystem-config.cmake"
71
74
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR} /cmake/ghc_filesystem"
72
75
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
+ )
75
87
add_library (ghcFilesystem::ghc_filesystem ALIAS ghc_filesystem)
76
88
endif ()
You can’t perform that action at this time.
0 commit comments