diff --git a/src/rawtoaces/CMakeLists.txt b/src/rawtoaces/CMakeLists.txt index 44bfe6d..7c4c93d 100644 --- a/src/rawtoaces/CMakeLists.txt +++ b/src/rawtoaces/CMakeLists.txt @@ -7,11 +7,6 @@ add_executable( rawtoaces set_property(TARGET rawtoaces PROPERTY CXX_STANDARD 17) -target_include_directories( rawtoaces - PUBLIC - ${AcesContainer_INCLUDE_DIRS} -) - target_link_libraries ( rawtoaces PUBLIC ${RAWTOACESLIB} diff --git a/src/rawtoaces_util/CMakeLists.txt b/src/rawtoaces_util/CMakeLists.txt index ebce7e3..0999df7 100644 --- a/src/rawtoaces_util/CMakeLists.txt +++ b/src/rawtoaces_util/CMakeLists.txt @@ -12,7 +12,7 @@ set_property(TARGET ${RAWTOACESLIB} PROPERTY CXX_STANDARD 17) if ( AcesContainer_FOUND ) target_include_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_INCLUDE_DIRS} ) - target_link_directories ( ${RAWTOACESLIB} PUBLIC ${AcesContainer_LIBRARY_DIRS} ) + target_link_directories ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_LIBRARY_DIRS} ) target_link_libraries ( ${RAWTOACESLIB} PRIVATE ${AcesContainer_LIBRARIES} @@ -33,6 +33,7 @@ target_link_libraries ( ${RAWTOACESLIB} if ( LIBRAW_CONFIG_FOUND ) target_link_libraries ( ${RAWTOACESLIB} PUBLIC libraw::raw ) else () + target_include_directories(${RAWTOACESLIB} PUBLIC ${libraw_INCLUDE_DIR}/..) target_link_directories(${RAWTOACESLIB} PUBLIC ${libraw_LIBRARY_DIRS} ) target_link_libraries(${RAWTOACESLIB} PUBLIC ${libraw_LIBRARIES} ${libraw_LDFLAGS_OTHER} ) endif ()