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
5 set(GKlib_COPTIONS "${GKlib_COPTIONS} -fPIC")
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")
13 elseif(${CMAKE_C_COMPILER_ID} MATCHES "Sun")
14 # Sun insists on -xc99.
15 set(GKlib_COPTIONS "${GKlib_COPTIONS} -xc99")