From 629c8850ecddf60a976b8c31d712aa90060ec8c3 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sun, 9 Jan 2022 19:25:02 -0500 Subject: [PATCH] Fix imported target include directory Fix the imported target include directory when the headers are not installed in '${CMAKE_INSTALL_PREFIX}/include'. --- code/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 08efd28df..373470ef9 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -1177,7 +1177,7 @@ TARGET_COMPILE_FEATURES(assimp PRIVATE c_std_99) TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC $ $ - $ + $ ) IF(ASSIMP_HUNTER_ENABLED) @@ -1311,7 +1311,7 @@ INSTALL( TARGETS assimp RUNTIME DESTINATION ${ASSIMP_BIN_INSTALL_DIR} FRAMEWORK DESTINATION ${ASSIMP_LIB_INSTALL_DIR} COMPONENT ${LIBASSIMP_COMPONENT} - INCLUDES DESTINATION include + INCLUDES DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR} ) INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev) INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)