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

Respect CMAKE_DEBUG_POSTFIX setup

This commit is contained in:
Claus Klein 2023-07-31 07:27:00 +02:00
parent d81a42450c
commit 0bb3325679
3 changed files with 5 additions and 6 deletions

View file

@ -32,5 +32,7 @@ jobs:
- name: build
run: cmake --build build -j4
- name: run
run: ./build/Greeter
- name: test
run: |
cd build
ctest --build-config Debug

View file

@ -28,7 +28,7 @@ jobs:
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: configure
run: cmake -S test -B build -G "Visual Studio 17 2022" -D BUILD_SHARED_LIBS=NO
run: cmake -S test -B build # -G "Visual Studio 17 2022" -D BUILD_SHARED_LIBS=NO
- name: build
run: cmake --build build --config Debug -j4

View file

@ -43,9 +43,6 @@ endif()
target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts::cxxopts)
set_target_properties(${PROJECT_NAME} PROPERTIES UNITY_BUILD ${OPTION_ENABLE_UNITY})
# TODO(CK): why is this used? This overrides the CMAKE_DEBUG_POSTFIX!
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME Greeter)
# --- Test it ---
enable_testing()