Skip to content

Commit a449be7

Browse files
authored
build(cmake): generate and install ErrorsConfigVersion.cmake (#119)
1 parent 322b7af commit a449be7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,15 @@ install(
110110
DESTINATION lib/cmake/Errors
111111
)
112112

113+
include(CMakePackageConfigHelpers)
114+
write_basic_package_version_file(
115+
ErrorsConfigVersion.cmake
116+
COMPATIBILITY SameMajorVersion
117+
)
118+
113119
install(
114-
FILES cmake/ErrorsConfig.cmake
120+
FILES
121+
cmake/ErrorsConfig.cmake
122+
${CMAKE_CURRENT_BINARY_DIR}/ErrorsConfigVersion.cmake
115123
DESTINATION lib/cmake/Errors
116124
)

0 commit comments

Comments
 (0)