Avoid warnings with Apple Clang
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 29 Jan 2019 07:05:44 +0000 (08:05 +0100)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 29 Jan 2019 07:06:42 +0000 (08:06 +0100)
The logic for -Wno-missing-prototypes for group kernels left the
warning enabled for Apple Clang, making it impossible to compile
the code with -Werror.

Change-Id: Ib9a0e23bd47f8cc1dd8f656aae49ba27bbf9b28b

src/gromacs/CMakeLists.txt

index d2f4e9b0e6e21ee7602902c762d16bbea037aca1..f94af553a91047274f879856836782856d62abcb 100644 (file)
@@ -280,7 +280,7 @@ endif()
 # source files, and issue warnings about that. Remove the use of
 # -Wno-missing-prototypes here and above when the group scheme is
 # removed.
-if (HAS_NO_MISSING_PROTO AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+if (HAS_NO_MISSING_PROTO AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     target_compile_options(libgromacs_generated PRIVATE "-Wno-missing-prototypes")
 endif()
 if (HAS_NO_MSVC_UNUSED)