From 11e66c6c9eceeddd2263c3591af6317cbd05c1b6 Mon Sep 17 00:00:00 2001 From: "Borchers, Henry Samuel" Date: Fri, 13 Apr 2018 10:49:27 -0500 Subject: [PATCH] BUILD_INTERFACE for include directories use PROJECT_SOURCE_DIR to allow for being built as a CMake subproject --- src/CMakeLists.txt | 6 +++--- xmpsdk/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index aab21a83..a7993898 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -231,13 +231,13 @@ endif() # TODO : We should not include include/exiv2 but only include !!! target_include_directories(exiv2lib PUBLIC - $ - $ + $ + $ $ ) target_include_directories(exiv2lib_int PUBLIC - $ + $ ) if (EXIV2_ENABLE_WEBREADY) diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt index ff8fd8bb..68913ded 100644 --- a/xmpsdk/CMakeLists.txt +++ b/xmpsdk/CMakeLists.txt @@ -37,7 +37,7 @@ target_link_libraries(xmp target_include_directories(xmp PUBLIC - $ + $ PRIVATE ${EXPAT_INCLUDE_DIR} )