Merge pull request #318 from ChristophJud/include_dir_relocation
Include dir relocation
This commit is contained in:
commit
04b11d78ff
2 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,8 @@ endif()
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
configure_package_config_file("cmake/config.cmake.in"
|
configure_package_config_file("cmake/config.cmake.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/${JSON_CONFIG_FILENAME}"
|
"${CMAKE_CURRENT_BINARY_DIR}/${JSON_CONFIG_FILENAME}"
|
||||||
INSTALL_DESTINATION ${JSON_CONFIG_DESTINATION})
|
INSTALL_DESTINATION ${JSON_CONFIG_DESTINATION}
|
||||||
|
PATH_VARS JSON_INCLUDE_DESTINATION)
|
||||||
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/${JSON_CONFIGVERSION_FILENAME}"
|
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/${JSON_CONFIGVERSION_FILENAME}"
|
||||||
VERSION ${PROJECT_VERSION}
|
VERSION ${PROJECT_VERSION}
|
||||||
COMPATIBILITY SameMajorVersion)
|
COMPATIBILITY SameMajorVersion)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@PACKAGE_INIT@
|
@PACKAGE_INIT@
|
||||||
|
set_and_check(JSON_INCLUDE_DIR "@PACKAGE_JSON_INCLUDE_DESTINATION@")
|
||||||
|
|
||||||
cmake_policy(PUSH)
|
cmake_policy(PUSH)
|
||||||
cmake_policy(SET CMP0024 OLD)
|
cmake_policy(SET CMP0024 OLD)
|
||||||
|
|
Loading…
Reference in a new issue