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.
This commit is contained in:
Christian Tacke 2021-04-09 13:41:03 +02:00 committed by Alexey Rybalchenko
parent f9af3a7269
commit 1c43450582

View File

@ -68,7 +68,7 @@ else()
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/logger/bundled>
$<INSTALL_INTERFACE:${PROJECT_INSTALL_BUNDLEDINCDIR}>
)
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()