2019-04-27 11:26:52 +05:30
|
|
|
|
###################################################################################################
|
|
|
|
|
# PGI Compiler
|
|
|
|
|
###################################################################################################
|
|
|
|
|
|
2019-12-21 12:29:09 +05:30
|
|
|
|
if (OPTIMIZATION STREQUAL "OFF")
|
|
|
|
|
set (OPTIMIZATION_FLAGS "-O0" )
|
|
|
|
|
elseif (OPTIMIZATION STREQUAL "DEFENSIVE")
|
|
|
|
|
set (OPTIMIZATION_FLAGS "-O2")
|
|
|
|
|
elseif (OPTIMIZATION STREQUAL "AGGRESSIVE")
|
|
|
|
|
set (OPTIMIZATION_FLAGS "-O3")
|
|
|
|
|
endif ()
|
2019-04-27 11:26:52 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------------------------
|
|
|
|
|
# Fine tuning compilation options
|
2019-12-21 12:29:09 +05:30
|
|
|
|
set (COMPILE_FLAGS "${COMPILE_FLAGS} -Mpreprocess")
|
|
|
|
|
# preprocessor
|
2019-04-27 11:26:52 +05:30
|
|
|
|
|
2019-12-21 12:29:09 +05:30
|
|
|
|
set (STANDARD_CHECK "-Mallocatable=03")
|
2019-04-27 11:26:52 +05:30
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------------------------
|
|
|
|
|
# Runtime debugging
|
2019-12-21 12:29:09 +05:30
|
|
|
|
set (DEBUG_FLAGS "${DEBUG_FLAGS} -g")
|
|
|
|
|
# Includes debugging information in the object module; sets the optimization level to zero unless a -O option is present on the command line
|