Commit 36b5db6b authored by BRAMAS Berenger's avatar BRAMAS Berenger

Put again the warning flags in the compilation (but only for Gcc because not...

Put again the warning flags in the compilation (but only for Gcc because not sure they are the same with intel) please do not remove-comment the flags if you face problems with them.
parent 5394efd2
......@@ -369,14 +369,15 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
message(STATUS "SCALFMM_USE_FFT = ${SCALFMM_USE_FFT}")
# Compile option
#ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -fpic )
#
# C++ 2011
message( STATUS "CMAKE_SYSTEM: ${CMAKE_SYSTEM} CMAKE_CXX_COMPILER_ID ${CMAKE_CXX_COMPILER_ID} CMAKE_CXX_COMPILER ${NAME}")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE INTEL_VERSION)
message( STATUS "Intel: ${INTEL_VERSION}")
else()
# Compile option valid on GCC/G++
ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wcast-qual -Wcast-align -Woverloaded-virtual)
endif()
#
##################################################################
......
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