diff options
author | sfan5 <sfan5@live.de> | 2022-04-03 21:44:22 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-04-03 21:44:22 +0200 |
commit | 837cea6b4a2315966b9670ae50cff9d3679bcff4 (patch) | |
tree | 10980fe3d0fa5cdbc8203b0447599316af734f5b | |
parent | b0b9732359d43325c8bd820abeb8417353365a0c (diff) | |
download | minetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.tar.gz minetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.tar.bz2 minetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.zip |
Fix -mwindows flag not being applied anymore
closes #12165
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1d6177ba3..ac4c1de73 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -723,7 +723,6 @@ else() if(MINGW) set(OTHER_FLAGS "${OTHER_FLAGS} -mthreads -fexceptions") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWIN32_LEAN_AND_MEAN") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mwindows") endif() # Use a safe subset of flags to speed up math calculations: @@ -760,6 +759,10 @@ else() if(USE_GPROF) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg") endif() + + if(MINGW) + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mwindows") + endif() endif() |