From e8d1012d41824765a798a5cb44208ff979d7d706 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Tue, 2 Mar 2021 12:10:23 +0100 Subject: [PATCH] fix syntax error link to static fmt lib again --- .github/workflows/macos.yml | 2 +- CMakeLists.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5d84cf9..1acc6b1 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -40,4 +40,4 @@ jobs: - name: build standalone with clang-tidy run: | - cmake -S standalone -B build/standalone -DUSE_STATIC_ANALYZER=clang-tidy + cmake -S standalone -B build/standalone -DUSE_STATIC_ANALYZER=clang-tidy diff --git a/CMakeLists.txt b/CMakeLists.txt index 054e64b..7f09931 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,9 +64,9 @@ set_target_properties( # being a cross-platform target, we enforce standards conformance on MSVC target_compile_options(Greeter PUBLIC $<$:/permissive>) -# Link dependencies -target_link_libraries(Greeter PUBLIC $) -# XXX target_link_libraries(Greeter PUBLIC fmt::fmt) +# Link dependencies Note Either: target_link_libraries(Greeter PUBLIC +# $) Or: +target_link_libraries(Greeter PUBLIC fmt::fmt) set(INCLUDE_INSTALL_DIR include/${PROJECT_NAME}-${PROJECT_VERSION}) target_include_directories( @@ -98,5 +98,5 @@ packageProject( INCLUDE_DESTINATION ${INCLUDE_INSTALL_DIR} VERSION_HEADER ${VERSION_HEADER_LOCATION} COMPATIBILITY SameMajorVersion - # XXX DEPENDENCIES "fmt 7.1.3" + DEPENDENCIES "fmt 7.1.3" )