diff -r 47cf2cf736e7 -r 3102d95a870e cmake_modules/compilerchecks.cmake --- a/cmake_modules/compilerchecks.cmake Wed Oct 09 18:08:37 2019 +0200 +++ b/cmake_modules/compilerchecks.cmake Wed Oct 09 18:12:09 2019 +0200 @@ -62,7 +62,7 @@ endif() endif() - if(CMAKE_BUILD_TYPE MATCHES "Release" OR CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo") + if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") set(CMAKE_REQUIRED_FLAGS "-Wl,--as-needed") check_c_compiler_flag("" HAVE_ASNEEDED) if(HAVE_ASNEEDED)