changeset 15476 | 3102d95a870e |
parent 15474 | 6e09555b25b4 |
--- 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)