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()