From e920f07b5587768435d6c94585c700bd17692221 Mon Sep 17 00:00:00 2001 From: julie Date: Thu, 12 Apr 2012 21:07:52 +0000 Subject: Add -qnosave option for xlf compiler (Thanks Rodney) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f0f9cd1f..9d022513 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,9 @@ if (UNIX) if ( "${CMAKE_Fortran_COMPILER}" MATCHES "ifort" ) set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fltconsistency -fp_port" ) endif () + if ( "${CMAKE_Fortran_COMPILER}" MATCHES "xlf" ) + set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qnosave" ) + endif () # Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler. # This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin STRING(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}") -- cgit v1.2.3