From 1c434505820d47d9cde40bb32b95690b1ee1e87d Mon Sep 17 00:00:00 2001 From: Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Fri, 9 Apr 2021 13:41:03 +0200 Subject: [PATCH] bundled fmt: Fix target_compile_feature When using the bundled fmt, the declared "INTERFACE" target can only declare INTERFACE compile features via target_compile_feature. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42664da..dc8d2dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ else() $ $ ) - target_compile_features(fmt PUBLIC cxx_std_11) + target_compile_features(fmt INTERFACE cxx_std_11) target_compile_definitions(fmt INTERFACE FMT_HEADER_ONLY) target_link_libraries(FairLogger PUBLIC fmt) endif()