Release note export to HTML/TXT
[foam-extend-3.2.git] / ThirdParty / rpmBuild / SOURCES / metis-5.1.0_patch_gcc
blobe4e30e29615b4e021fa8e46b6de03563b0730c85
1 diff -uNr metis-5.1.0_old/GKlib/GKlibSystem.cmake metis-5.1.0/GKlib/GKlibSystem.cmake
2 --- metis-5.1.0_old/GKlib/GKlibSystem.cmake     2013-12-04 20:05:16.775347144 +0100
3 +++ metis-5.1.0/GKlib/GKlibSystem.cmake 2013-12-04 20:06:34.111345064 +0100
4 @@ -33,7 +33,10 @@
5        set(GKlib_COPTIONS "${GKlib_COPTIONS} -fPIC")
6    endif(NOT MINGW)
7  # GCC warnings.
8 -  set(GKlib_COPTIONS "${GKlib_COPTIONS} -Wall -pedantic -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas")
9 +  set(GKlib_COPTIONS "${GKlib_COPTIONS} -Wall -pedantic -Wno-unused-variable -Wno-unknown-pragmas")
10 +  if(GCC_COMPILER_VERSION VERSION_GREATER 4.3)
11 +    set(GKlib_COPTIONS "${GKlib_COPTIONS} -Wno-unused-but-set-variable")
12 +  endif()
13  elseif(${CMAKE_C_COMPILER_ID} MATCHES "Sun")
14  # Sun insists on -xc99.
15    set(GKlib_COPTIONS "${GKlib_COPTIONS} -xc99")