Skip to content

Commit 6bef6e6

Browse files
committed
Added config-specific output dirs
1 parent a5962ac commit 6bef6e6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/ci_tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
if [ "${{ matrix.config.cxx }}" == "g++" ]; then
6565
./cpp_tests.exe --help
6666
else
67-
cd Debug
6867
./cpp_tests.exe --help
6968
fi
7069
else
@@ -79,8 +78,7 @@ jobs:
7978
if [ "$RUNNER_OS" == "Windows" ]; then
8079
if [ "${{ matrix.config.cxx }}" == "g++" ]; then
8180
./cpp_tests_tests.exe
82-
else
83-
cd Debug
81+
else
8482
./cpp_tests_tests.exe
8583
fi
8684
else

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ project(
1010
set(CMAKE_CXX_STANDARD 20)
1111

1212
if(WIN32) # Install dlls in the same directory as the executable on Windows
13-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
14-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
15-
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
13+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
14+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
15+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
16+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
17+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
18+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
1619
endif()
1720

1821
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")

0 commit comments

Comments
 (0)