mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-13 00:31:12 +00:00
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:
parent
f9af3a7269
commit
4ad7907ccf
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user