Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 615407c

Browse files
authored
Merge pull request #4 from t0p4/hunter-0.0.0-12ecff3
Update Cmake for flexible package version
2 parents 7c6b5f2 + 2fa482b commit 615407c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ include(GNUInstallDirs)
1313

1414
include(CMakePackageConfigHelpers)
1515

16-
write_basic_package_version_file(
17-
"${version_config}" COMPATIBILITY SameMajorVersion
18-
)
19-
20-
configure_package_config_file(
16+
configure_package_config_file(
2117
"cmake/config.cmake.in"
2218
"${project_config}"
2319
INSTALL_DESTINATION "${config_install_dir}"
@@ -248,12 +244,12 @@ else()
248244
endif()
249245

250246
install(
251-
FILES "${project_config}" "${version_config}"
247+
FILES "${project_config}"
252248
DESTINATION "${config_install_dir}"
253249
)
254250

255251
install(
256252
EXPORT "${targets_export_name}"
257253
NAMESPACE "${namespace}"
258254
DESTINATION "${config_install_dir}"
259-
)
255+
)

0 commit comments

Comments
 (0)