From 8d062654702e969ee087f4181252e07a8a103501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Thu, 14 Jan 2021 15:44:26 +0100 Subject: [PATCH] Fix MinGW build for Ninja generator --- cmake/compilerFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compilerFlags.cmake b/cmake/compilerFlags.cmake index d8776411..35faf501 100644 --- a/cmake/compilerFlags.cmake +++ b/cmake/compilerFlags.cmake @@ -41,7 +41,7 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS) - if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT APPLE AND NOT MSYS) + if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT (APPLE OR MINGW OR MSYS)) add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2 endif()