Skip to content

Commit 71a3971

Browse files
committed
Use multi config generators
1 parent f711153 commit 71a3971

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

cpp/CMakePresets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"inherits": "default",
4343
"generator": "Visual Studio 17 2022",
4444
"cacheVariables": {
45-
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
45+
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
46+
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>"
4647
}
4748
},
4849
{

cpp/justfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,18 @@ bootstrap:
2626
configure: bootstrap
2727
cmake --preset {{cmake_preset}}
2828

29-
build: configure
30-
cmake --build ./build
29+
build_debug: configure
30+
cmake --build ./build --config Debug
3131

32-
test: build
33-
ctest --test-dir ./build --output-on-failure
32+
build_release: configure
33+
cmake --build ./build --config Release
34+
35+
build: build_release
36+
37+
test_debug: build
38+
ctest --test-dir ./build --output-on-failure -C Debug
39+
40+
test_release: build
41+
ctest --test-dir ./build --output-on-failure -C Release
42+
43+
test: test_release

0 commit comments

Comments
 (0)