Commit 6922a04f authored by GILLES Sebastien's avatar GILLES Sebastien

#1217 Add the MOREFEM_LLVM_CLANG macro (to enable some warning suppression...

#1217 Add the MOREFEM_LLVM_CLANG macro (to enable some warning suppression only for this compiler); also remove unused field in Paths.cmake.
parent 0c33aeeb
......@@ -20,6 +20,11 @@ if(${CMAKE_C_COMPILER_ID} STREQUAL "AppleClang" OR ${CMAKE_C_COMPILER_ID} STREQU
# be removed at any point from libc++.
endif()
# Convenient macro to tag LLVM clang; useful as some warnings needs to be suppressed only for this more recent version of clang.
if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
add_definitions(-DMOREFEM_LLVM_CLANG)
endif()
elseif(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
add_cxx_compiler_flag("-Wall")
add_cxx_compiler_flag("-Wextra")
......
......@@ -2,9 +2,6 @@
set(CC /Users/Shared/LibraryVersions/llvm-clang/Openmpi/bin/mpicc )
set(CXX /Users/Shared/LibraryVersions/llvm-clang/Openmpi/bin/mpic++ )
# Choose either 'debug' or 'release'.
set(MODE debug)
# Choose either STATIC or SHARED.
set(LIBRARY_TYPE SHARED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment