Skip to content

Commit 9e8ff82

Browse files
mgronckijenkins
authored andcommitted
fix CMakePresets.json
- support ninja and msbuild
1 parent f7386a2 commit 9e8ff82

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

CMakePresets.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"version": 2,
33
"configurePresets": [
44
{
5-
"name": "windows-ninja-x64-relWithDebInfo",
5+
"name": "windows-ninja-x64-debug",
66
"binaryDir": "${sourceDir}/build",
7-
"generator": "Ninja",
7+
"generator": "Ninja Multi-Config",
88
"cacheVariables": {
9-
"CMAKE_C_COMPILER": "cl.exe",
109
"CMAKE_CXX_COMPILER": "cl.exe",
11-
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
10+
"CMAKE_BUILD_TYPE": "Debug",
1211
"BOOST_INCLUDEDIR": "$env{BOOST}",
1312
"BOOST_LIBRARYDIR": "$env{BOOST_LIB64}",
1413
"QL_BUILD_EXAMPLES": false,
1514
"QL_BUILD_TEST_SUITE": false,
1615
"QL_BUILD_BENCHMARK": false,
1716
"MSVC_LINK_DYNAMIC_RUNTIME": true,
18-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
17+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
1918
"ENABLE_SESSIONS": true,
19+
"ORE_BUILD_DOC": false
2020
},
2121
"architecture": {
2222
"value": "x64",
@@ -32,22 +32,21 @@
3232
}
3333
},
3434
{
35-
"name": "windows-ninja-x64-debug",
35+
"name": "windows-ninja-x64-relWithDebInfo",
3636
"binaryDir": "${sourceDir}/build",
37-
"generator": "Ninja",
37+
"generator": "Ninja Multi-Config",
3838
"cacheVariables": {
39-
"CMAKE_C_COMPILER": "cl.exe",
4039
"CMAKE_CXX_COMPILER": "cl.exe",
41-
"CMAKE_BUILD_TYPE": "Debug",
40+
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
4241
"BOOST_INCLUDEDIR": "$env{BOOST}",
4342
"BOOST_LIBRARYDIR": "$env{BOOST_LIB64}",
4443
"QL_BUILD_EXAMPLES": false,
4544
"QL_BUILD_TEST_SUITE": false,
4645
"QL_BUILD_BENCHMARK": false,
47-
"MSVC_LINK_DYNAMIC_RUNTIME": false,
48-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
46+
"MSVC_LINK_DYNAMIC_RUNTIME": true,
47+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
4948
"ENABLE_SESSIONS": true,
50-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
49+
"ORE_BUILD_DOC": false
5150
},
5251
"architecture": {
5352
"value": "x64",
@@ -73,9 +72,9 @@
7372
"QL_BUILD_TEST_SUITE": false,
7473
"QL_BUILD_BENCHMARK": false,
7574
"MSVC_LINK_DYNAMIC_RUNTIME": true,
76-
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
75+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
7776
"ENABLE_SESSIONS": true,
78-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
77+
"ORE_BUILD_DOC": false
7978
},
8079
"architecture": {
8180
"value": "x64",
@@ -103,7 +102,7 @@
103102
"MSVC_LINK_DYNAMIC_RUNTIME": false,
104103
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
105104
"ENABLE_SESSIONS": true,
106-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
105+
"ORE_BUILD_DOC": false
107106
},
108107
"architecture": {
109108
"value": "x64",

cmake/commonSettings.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ if(MSVC)
9393
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/GF>")
9494
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Gy>")
9595
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/GT>")
96-
97-
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Ob2>")
9896
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Oi>")
9997
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Ot>")
10098

0 commit comments

Comments
 (0)