Permalink
Browse files

relocation of install-include directory for other packages

  • Loading branch information...
1 parent 5879eb0 commit e1b6a23049d6adac110093a035ec3bd777536bec @ChristophJud ChristophJud committed Sep 26, 2016
Showing with 4 additions and 2 deletions.
  1. +2 −1 CMakeLists.txt
  2. +2 −1 cmake/config.cmake.in
View
@@ -31,7 +31,8 @@ endif()
include(CMakePackageConfigHelpers)
configure_package_config_file("cmake/config.cmake.in"
"${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}"
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion)
@@ -1,6 +1,7 @@
@PACKAGE_INIT@
+set_and_check(JSON_INCLUDE_DIR "@PACKAGE_JSON_INCLUDE_DESTINATION@")
cmake_policy(PUSH)
cmake_policy(SET CMP0024 OLD)
include(${CMAKE_CURRENT_LIST_DIR}/@JSON_TARGETS_FILENAME@)
-cmake_policy(POP)
+cmake_policy(POP)

0 comments on commit e1b6a23

Please sign in to comment.