Merge pull request #1175 from Exiv2/fix_1102_msysGCC93_0.27

fix_1102_msysGCC93_0.27 (0.27->master)
This commit is contained in:
Robin Mills 2020-04-24 09:13:46 +01:00 committed by GitHub
commit 56100bca1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,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)
if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT APPLE AND NOT MSYS)
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
endif()