Skip to content

Commit

Permalink
Respect CMAKE_DEBUG_POSTFIX setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Jul 31, 2023
1 parent d81a424 commit 0bb3325
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions standalone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0bb3325

Please sign in to comment.