Skip to content

Commit 8d06265

Browse files
committed
Fix MinGW build for Ninja generator
1 parent b7a2142 commit 8d06265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/compilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
4141

4242
add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS)
4343

44-
if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT APPLE AND NOT MSYS)
44+
if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT (APPLE OR MINGW OR MSYS))
4545
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
4646
endif()
4747

0 commit comments

Comments
 (0)