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

fmt must be dependent, no idea why for private use

fix generaotr expression too, hopfully
This commit is contained in:
ClausKlein 2021-02-07 00:36:41 +01:00
parent a1356ca20d
commit 3c55643690

View file

@ -68,7 +68,7 @@ target_sources(Greeter PRIVATE ${headers} ${sources})
# being a cross-platform target, we enforce standards conformance on MSVC
# this should not exported on UNIX! CK
# FIXME target_compile_options(Greeter PUBLIC "$<$<BOOL:${MSVC}>:/permissive->")
target_compile_options(Greeter PUBLIC "$<$<CXX_COMPILER_ID:MSVC>:/permissive->")
# Link dependencies (if required)
target_link_libraries(Greeter PRIVATE fmt::fmt-header-only)
@ -94,5 +94,5 @@ packageProject(
INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include
INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
VERSION_HEADER "${VERSION_HEADER_LOCATION}"
#XXX DEPENDENCIES fmt
DEPENDENCIES fmt
)