Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid overwriting CXX compiler with MPI wraper; only add GNU specific…
… compiler options when using GNU.

Originally committed by @ggorman.
  • Loading branch information
Frank Milthaler committed Jun 8, 2015
commit 5d0f320722827a691fb6ff531ab9995537756822
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-literal-suffix -Wno-deprecated")
if(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-literal-suffix -Wno-deprecated")
endif()

# Use env variable iff it exists and command line arg was not given:
if (NOT (DEFINED ENABLE_MPI) AND (NOT (x$ENV{ENABLE_MPI} STREQUAL x)))
Expand Down