Skip to content

Commit 0a20931

Browse files
mgronckijenkins
authored andcommitted
Merge remote-tracking branch 'origin/master' into QPR-11788
1 parent 338a902 commit 0a20931

3 files changed

Lines changed: 67 additions & 7 deletions

File tree

App/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ if(MSVC AND MSVC_WHOLE_PROGRAM_OPTIMIZATION)
4040
target_link_options(ore PRIVATE "$<$<CONFIG:RelWithDebInfo>:/LTCG>")
4141
target_link_options(ore PRIVATE "$<$<CONFIG:RelWithDebInfo>:/OPT:REF>")
4242
target_link_options(ore PRIVATE "$<$<CONFIG:RelWithDebInfo>:/OPT:ICF>")
43+
44+
target_compile_options(ore PRIVATE "$<$<CONFIG:Release>:/GL>")
45+
target_link_options(ore PRIVATE "$<$<CONFIG:Release>:/INCREMENTAL:NO>")
46+
target_link_options(ore PRIVATE "$<$<CONFIG:Release>:/LTCG>")
47+
target_link_options(ore PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
48+
target_link_options(ore PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
49+
4350
endif()
4451

4552
install(TARGETS ore

CMakePresets.json

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,37 @@
1515
"QL_BUILD_BENCHMARK": false,
1616
"MSVC_LINK_DYNAMIC_RUNTIME": true,
1717
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
18-
"ENABLE_SESSIONS": true,
18+
"QL_ENABLE_SESSIONS": true,
19+
"ORE_BUILD_DOC": false
20+
},
21+
"architecture": {
22+
"value": "x64",
23+
"strategy": "external"
24+
},
25+
"vendor": {
26+
"microsoft.com/VisualStudioSettings/CMake/1.0": {
27+
"intelliSenseMode": "windows-msvc-x64",
28+
"hostOS": [
29+
"Windows"
30+
]
31+
}
32+
}
33+
},
34+
{
35+
"name": "windows-ninja-x64-release",
36+
"binaryDir": "${sourceDir}/build",
37+
"generator": "Ninja Multi-Config",
38+
"cacheVariables": {
39+
"CMAKE_CXX_COMPILER": "cl.exe",
40+
"CMAKE_BUILD_TYPE": "Release",
41+
"BOOST_INCLUDEDIR": "$env{BOOST}",
42+
"BOOST_LIBRARYDIR": "$env{BOOST_LIB64}",
43+
"QL_BUILD_EXAMPLES": false,
44+
"QL_BUILD_TEST_SUITE": false,
45+
"QL_BUILD_BENCHMARK": false,
46+
"MSVC_LINK_DYNAMIC_RUNTIME": true,
47+
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
48+
"QL_ENABLE_SESSIONS": true,
1949
"ORE_BUILD_DOC": false
2050
},
2151
"architecture": {
@@ -45,7 +75,7 @@
4575
"QL_BUILD_BENCHMARK": false,
4676
"MSVC_LINK_DYNAMIC_RUNTIME": true,
4777
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
48-
"ENABLE_SESSIONS": true,
78+
"QL_ENABLE_SESSIONS": true,
4979
"ORE_BUILD_DOC": false
5080
},
5181
"architecture": {
@@ -73,7 +103,7 @@
73103
"QL_BUILD_BENCHMARK": false,
74104
"MSVC_LINK_DYNAMIC_RUNTIME": true,
75105
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": false,
76-
"ENABLE_SESSIONS": true,
106+
"QL_ENABLE_SESSIONS": true,
77107
"ORE_BUILD_DOC": false
78108
},
79109
"architecture": {
@@ -101,7 +131,7 @@
101131
"QL_BUILD_BENCHMARK": false,
102132
"MSVC_LINK_DYNAMIC_RUNTIME": false,
103133
"MSVC_WHOLE_PROGRAM_OPTIMIZATION": true,
104-
"ENABLE_SESSIONS": true,
134+
"QL_ENABLE_SESSIONS": true,
105135
"ORE_BUILD_DOC": false
106136
},
107137
"architecture": {
@@ -119,6 +149,11 @@
119149
}
120150
],
121151
"buildPresets": [
152+
{
153+
"name": "windows-ninja-x64-release",
154+
"configurePreset": "windows-ninja-x64-release",
155+
"configuration": "Release"
156+
},
122157
{
123158
"name": "windows-ninja-x64-relWithDebInfo",
124159
"configurePreset": "windows-ninja-x64-relWithDebInfo",
@@ -129,6 +164,14 @@
129164
"configurePreset": "windows-ninja-x64-debug",
130165
"configuration": "Debug"
131166
},
167+
{
168+
"name": "windows-msvc-x64-release",
169+
"configurePreset": "windows-msvc-x64",
170+
"configuration": "Release",
171+
"nativeToolOptions": [
172+
"-m"
173+
]
174+
},
132175
{
133176
"name": "windows-msvc-x64-relWithDebInfo",
134177
"configurePreset": "windows-msvc-x64",
@@ -145,6 +188,14 @@
145188
"-m"
146189
]
147190
},
191+
{
192+
"name": "windows-msvc-x64-static-release",
193+
"configurePreset": "windows-msvc-x64-static",
194+
"configuration": "Release",
195+
"nativeToolOptions": [
196+
"-m"
197+
]
198+
},
148199
{
149200
"name": "windows-msvc-x64-static-relWithDebInfo",
150201
"configurePreset": "windows-msvc-x64-static",

cmake/commonSettings.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ if(MSVC)
7171
add_compile_definitions(_SCL_SECURE_NO_DEPRECATE)
7272
add_compile_definitions(_CRT_SECURE_NO_DEPRECATE)
7373
add_compile_definitions(BOOST_ENABLE_ASSERT_HANDLER)
74-
if(ENABLE_SESSIONS)
75-
add_compile_definitions(QL_ENABLE_SESSIONS)
76-
endif()
7774
add_compile_options(/bigobj)
7875
add_compile_options(/W3)
7976
#add_compile_options(/we4265) #no-virtual-destructor
@@ -90,6 +87,11 @@ if(MSVC)
9087

9188
add_link_options(/LARGEADDRESSAWARE)
9289

90+
add_compile_options("$<$<CONFIG:Release>:/GF>")
91+
add_compile_options("$<$<CONFIG:Release>:/Gy>")
92+
add_compile_options("$<$<CONFIG:Release>:/Ot>")
93+
add_compile_options("$<$<CONFIG:Release>:/GT>")
94+
9395
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/GF>")
9496
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Gy>")
9597
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/GT>")

0 commit comments

Comments
 (0)