mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-01 06:30:52 +02:00
fix syntax error
link to static fmt lib again
This commit is contained in:
parent
a50af55582
commit
e8d1012d41
2 changed files with 5 additions and 5 deletions
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
|
@ -40,4 +40,4 @@ jobs:
|
||||||
|
|
||||||
- name: build standalone with clang-tidy
|
- name: build standalone with clang-tidy
|
||||||
run: |
|
run: |
|
||||||
cmake -S standalone -B build/standalone -DUSE_STATIC_ANALYZER=clang-tidy
|
cmake -S standalone -B build/standalone -DUSE_STATIC_ANALYZER=clang-tidy
|
||||||
|
|
|
@ -64,9 +64,9 @@ set_target_properties(
|
||||||
# being a cross-platform target, we enforce standards conformance on MSVC
|
# being a cross-platform target, we enforce standards conformance on MSVC
|
||||||
target_compile_options(Greeter PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/permissive>)
|
target_compile_options(Greeter PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/permissive>)
|
||||||
|
|
||||||
# Link dependencies
|
# Link dependencies Note Either: target_link_libraries(Greeter PUBLIC
|
||||||
target_link_libraries(Greeter PUBLIC $<BUILD_INTERFACE:fmt::fmt-header-only>)
|
# $<BUILD_INTERFACE:fmt::fmt-header-only>) Or:
|
||||||
# XXX target_link_libraries(Greeter PUBLIC fmt::fmt)
|
target_link_libraries(Greeter PUBLIC fmt::fmt)
|
||||||
|
|
||||||
set(INCLUDE_INSTALL_DIR include/${PROJECT_NAME}-${PROJECT_VERSION})
|
set(INCLUDE_INSTALL_DIR include/${PROJECT_NAME}-${PROJECT_VERSION})
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
|
@ -98,5 +98,5 @@ packageProject(
|
||||||
INCLUDE_DESTINATION ${INCLUDE_INSTALL_DIR}
|
INCLUDE_DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||||
VERSION_HEADER ${VERSION_HEADER_LOCATION}
|
VERSION_HEADER ${VERSION_HEADER_LOCATION}
|
||||||
COMPATIBILITY SameMajorVersion
|
COMPATIBILITY SameMajorVersion
|
||||||
# XXX DEPENDENCIES "fmt 7.1.3"
|
DEPENDENCIES "fmt 7.1.3"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue