diff options
author | William R. Dieter <william.r.dieter@intel.com> | 2022-07-29 00:13:06 (GMT) |
---|---|---|
committer | William R. Dieter <william.r.dieter@intel.com> | 2022-08-01 23:34:49 (GMT) |
commit | c633bd76d839fd47419494fe3018d17a508068a7 (patch) | |
tree | f4d2f4a137ffaaf1c08701867f0d40da4d4cb624 /CompileFlags.cmake | |
parent | 6823db0c5ae8c22e1b9655860a7b614ae8a96f12 (diff) | |
download | CMake-c633bd76d839fd47419494fe3018d17a508068a7.zip CMake-c633bd76d839fd47419494fe3018d17a508068a7.tar.gz CMake-c633bd76d839fd47419494fe3018d17a508068a7.tar.bz2 |
Add linker prefix for "-stack" flag on MSVC builds
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r-- | CompileFlags.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake index 5641de4..47c8352 100644 --- a/CompileFlags.cmake +++ b/CompileFlags.cmake @@ -23,7 +23,7 @@ else() endif() if(MSVC) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stack:10000000") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_CXX_LINKER_WRAPPER_FLAG}-stack:10000000") endif() # MSVC 14.28 enables C5105, but the Windows SDK 10.0.18362.0 triggers it. |