diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-12 16:36:46 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-09-12 16:36:46 +0300 |
commit | d28686ada6f72035f23b83960e63599f50fbc38d (patch) | |
tree | c7295d08ffa9f27d7f8b19b5741b286acaa40b9b /cmake/os | |
parent | 9d26f3dabb8299149af99faafa52398cce44e610 (diff) | |
parent | 60c04be6599597548ad07ce11e1d7d4004a7cc9c (diff) | |
download | mariadb-git-d28686ada6f72035f23b83960e63599f50fbc38d.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'cmake/os')
-rw-r--r-- | cmake/os/Windows.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index 7fb9c91049b..c48e3eb07f2 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -188,11 +188,18 @@ IF(MSVC) IF(MYSQL_MAINTAINER_MODE MATCHES "ERR") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX") + FOREACH(type EXE SHARED MODULE) + FOREACH(cfg RELEASE DEBUG RELWITHDEBINFO) + SET(CMAKE_${type}_LINKER_FLAGS_${cfg} "${CMAKE_${type}_LINKER_FLAGS_${cfg}} /WX") + ENDFOREACH() + ENDFOREACH() ENDIF() IF(MSVC_VERSION LESS 1910) # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), # removed in VS2017 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") + ELSE() + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2OptimizeHugeFunctions") ENDIF() ENDIF() |