Skip to content

Commit 9a89cc9

Browse files
authored
Merge pull request #1452 from Exiv2/fix_mingw_ninja_build
Fix MinGW build for Ninja generator
2 parents b7a2142 + 8d06265 commit 9a89cc9

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)