From c30b03a8997ec61b7c2f45e25aa1a4ace47cf99c Mon Sep 17 00:00:00 2001 From: Mark Callow <2244683+MarkCallow@users.noreply.github.com> Date: Sun, 27 Aug 2023 09:18:06 +0900 Subject: [PATCH] Do target_type changes only in toktx (#757) They were being done in both `toktx` and the `imageinput` plugin. Fixes #727. * Move image-related utilities and image.hpp from `ktxtools` to `imageio` target for sharing between new and legacy tools. * Change `toktx` to use the updated version of image.hpp. * Make `other_Includes` a system include for `imageio` and `unittests`. * Make `toktx` use `imageio`'s INTERFACE includes instead of directly referencing the directories. * Fix mismatched `new[]` and `delete` in `glloadtests`. --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cd8855e33..f926560683 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -505,13 +505,18 @@ macro(common_libktx_settings target enable_write library_type) $ $ - $ - $ - $ $ ) + target_include_directories( + ${target} + SYSTEM + PRIVATE + $ + $ + ) + if( ${library_type} STREQUAL STATIC ) target_compile_definitions(${target} PUBLIC KHRONOS_STATIC) endif()