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

Commit

Permalink
Merge pull request #4 from t0p4/hunter-0.0.0-12ecff3
Browse files Browse the repository at this point in the history
Update Cmake for flexible package version
  • Loading branch information
ruslo authored Nov 29, 2018
2 parents 7c6b5f2 + 2fa482b commit 615407c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ include(GNUInstallDirs)

include(CMakePackageConfigHelpers)

write_basic_package_version_file(
"${version_config}" COMPATIBILITY SameMajorVersion
)

configure_package_config_file(
configure_package_config_file(
"cmake/config.cmake.in"
"${project_config}"
INSTALL_DESTINATION "${config_install_dir}"
Expand Down Expand Up @@ -248,12 +244,12 @@ else()
endif()

install(
FILES "${project_config}" "${version_config}"
FILES "${project_config}"
DESTINATION "${config_install_dir}"
)

install(
EXPORT "${targets_export_name}"
NAMESPACE "${namespace}"
DESTINATION "${config_install_dir}"
)
)

0 comments on commit 615407c

Please sign in to comment.