diff --git a/CMakeLists.txt b/CMakeLists.txt index 7205efc3..61d21781 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -171,16 +171,14 @@ endif() add_library(spdlog::spdlog ALIAS spdlog) -set(SPDLOG_INCLUDES_LEVEL "PUBLIC") -set(SPDLOG_HEADER_INCLUDES_LEVEL "") +set(SPDLOG_INCLUDES_LEVEL "") if(SPDLOG_SYSTEM_INCLUDES) set(SPDLOG_INCLUDES_LEVEL "SYSTEM") - set(SPDLOG_HEADER_INCLUDES_LEVEL "SYSTEM") endif() target_compile_definitions(spdlog PUBLIC SPDLOG_COMPILED_LIB) -target_include_directories(spdlog ${SPDLOG_INCLUDES_LEVEL} "$" +target_include_directories(spdlog ${SPDLOG_INCLUDES_LEVEL} PUBLIC "$" "$") target_link_libraries(spdlog PUBLIC Threads::Threads) spdlog_enable_warnings(spdlog) @@ -199,7 +197,7 @@ endif() add_library(spdlog_header_only INTERFACE) add_library(spdlog::spdlog_header_only ALIAS spdlog_header_only) -target_include_directories(spdlog_header_only ${SPDLOG_HEADER_INCLUDES_LEVEL} INTERFACE "$" +target_include_directories(spdlog_header_only ${SPDLOG_INCLUDES_LEVEL} INTERFACE "$" "$") target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)