aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-04-03 21:44:22 +0200
committersfan5 <sfan5@live.de>2022-04-03 21:44:22 +0200
commit837cea6b4a2315966b9670ae50cff9d3679bcff4 (patch)
tree10980fe3d0fa5cdbc8203b0447599316af734f5b
parentb0b9732359d43325c8bd820abeb8417353365a0c (diff)
downloadminetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.tar.gz
minetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.tar.bz2
minetest-837cea6b4a2315966b9670ae50cff9d3679bcff4.zip
Fix -mwindows flag not being applied anymore
closes #12165
-rw-r--r--src/CMakeLists.txt5
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()