diff --git a/CMakeLists.txt b/CMakeLists.txt index 36ea6c81f..0483b1588 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,4 +328,4 @@ write_basic_package_version_file( COMPATIBILITY SameMajorVersion ) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/osgEarthConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/osgEarthConfigVersion.cmake - DESTINATION ${CMAKE_INSTALL_PREFIX}/cmake ) + DESTINATION ${CMAKE_ROOT} ) diff --git a/src/osgEarthDrivers/gltf/CMakeLists.txt b/src/osgEarthDrivers/gltf/CMakeLists.txt index 15dd7ed0c..2c6891371 100644 --- a/src/osgEarthDrivers/gltf/CMakeLists.txt +++ b/src/osgEarthDrivers/gltf/CMakeLists.txt @@ -11,7 +11,7 @@ SET(TARGET_SRC INCLUDE_DIRECTORIES( ${OSGEARTH_EMBEDDED_THIRD_PARTY_DIR}/tinygltf - ${OSGEARTH_EMBEDDED_THIRD_PARTY_DIR}/rapidjson/include/rapidjson + ${INCLUDE_INSTALL_DIR}/rapidjson ) IF(draco_FOUND)