1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

fmt library does not supporting shared lib yet

format all files again
This commit is contained in:
ClausKlein 2021-03-02 14:08:47 +01:00
parent 75c10df2d8
commit e3d8699d36

View file

@ -64,10 +64,11 @@ set_target_properties(
# being a cross-platform target, we enforce standards conformance on MSVC
target_compile_options(Greeter PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/permissive>)
# Link dependencies Note:
# Link dependencies Note: fmt::fmt is not suppoting shared library builds! CK
# Either: target_link_libraries(Greeter PUBLIC $<BUILD_INTERFACE:fmt::fmt-header-only>) Or:
target_link_libraries(Greeter PUBLIC fmt::fmt)
# Either:
target_link_libraries(Greeter PUBLIC $<BUILD_INTERFACE:fmt::fmt-header-only>)
# Or: target_link_libraries(Greeter PUBLIC fmt::fmt)
set(INCLUDE_INSTALL_DIR include/${PROJECT_NAME}-${PROJECT_VERSION})
target_include_directories(
@ -99,5 +100,5 @@ packageProject(
INCLUDE_DESTINATION ${INCLUDE_INSTALL_DIR}
VERSION_HEADER ${VERSION_HEADER_LOCATION}
COMPATIBILITY SameMajorVersion
DEPENDENCIES "fmt 7.1.3"
# XXX DEPENDENCIES "fmt 7.1.3"
)