File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ if (${VCPKG_TARGET_TRIPLET} MATCHES ".*-static")
6565 foreach (CompilerFlag ${CompilerFlags} )
6666 string (REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag} }" )
6767 endforeach ()
68+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL" )
69+ set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /GL" )
70+ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG" )
6871 # Need explicit dependencies on wx's dependencies
6972 find_package (png REQUIRED)
7073 find_package (tiff REQUIRED)
Original file line number Diff line number Diff line change 5151 {
5252 "name" : " x86-Release-static" ,
5353 "generator" : " Ninja" ,
54- "configurationType" : " RelWithDebInfo " ,
54+ "configurationType" : " Release " ,
5555 "buildRoot" : " ${projectDir}\\ out\\ build\\ ${name}" ,
5656 "installRoot" : " ${projectDir}\\ out\\ install\\ ${name}" ,
5757 "cmakeCommandArgs" : " -DVCPKG_TARGET_TRIPLET=x86-windows-static" ,
You can’t perform that action at this time.
0 commit comments