From 457cab9a9a8e44806e0c0a58b349dacaadac38f6 Mon Sep 17 00:00:00 2001 From: cdzhan Date: Tue, 13 Aug 2024 10:52:05 +0800 Subject: [PATCH] Prioritize using the header files of self --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3b35110f8dc..adf1262e762e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,7 +319,7 @@ else () message(WARNING "Feature cxx_std_11 is unknown for the CXX compiler") endif () -target_include_directories(fmt ${FMT_SYSTEM_HEADERS_ATTRIBUTE} PUBLIC +target_include_directories(fmt ${FMT_SYSTEM_HEADERS_ATTRIBUTE} BEFORE PUBLIC $ $) @@ -369,7 +369,7 @@ target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1) target_compile_features(fmt-header-only INTERFACE cxx_std_11) target_include_directories(fmt-header-only - ${FMT_SYSTEM_HEADERS_ATTRIBUTE} INTERFACE + ${FMT_SYSTEM_HEADERS_ATTRIBUTE} BEFORE INTERFACE $ $)