From c106cb2e2fcae39c29405c288c1858959504516d Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 4 Dec 2009 10:21:57 -0500 Subject: Generalize support for Portland Group Compiler We factor flags from Platform/Linux-PGI-Fortran.cmake into language independent helper modules Compiler/PGI.cmake Platform/Linux-PGI.cmake and invoke the macros from Compiler/PGI-.cmake Platform/Linux-PGI-.cmake This enables general support for the PGI compilers. --- Modules/Compiler/PGI-C.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Modules/Compiler/PGI-C.cmake') diff --git a/Modules/Compiler/PGI-C.cmake b/Modules/Compiler/PGI-C.cmake index abf384ab86..da88c01164 100644 --- a/Modules/Compiler/PGI-C.cmake +++ b/Modules/Compiler/PGI-C.cmake @@ -1 +1,4 @@ -SET(CMAKE_C_VERBOSE_FLAG "-v") +include(Compiler/PGI) +__compiler_pgi(C) +set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG") +set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG") -- cgit v1.2.1