Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit c7d2876

Browse files
st4rl3sspramodk
authored andcommitted
Fix CMake issue with PGI and README update (#136)
* Remove -Wall for PGI compiler * Update README
1 parent e3bee5a commit c7d2876

File tree

2 files changed

+122
-150
lines changed

2 files changed

+122
-150
lines changed

CMake/config/CompilerFlagsHelpers.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ foreach(COMPILER_LANGUAGE ${SUPPORTED_COMPILER_LANGUAGE_LIST})
123123

124124
## rest of the world
125125
else()
126-
set(CMAKE_${COMPILER_LANGUAGE}_WARNING_ALL "")
126+
set(CMAKE_${COMPILER_LANGUAGE}_WARNING_ALL "-Wall")
127127
set(CMAKE_${COMPILER_LANGUAGE}_DEBUGINFO_FLAGS "-g")
128128

129129
set(CMAKE_${COMPILER_LANGUAGE}_OPT_NONE "-O0")
@@ -141,6 +141,9 @@ foreach(COMPILER_LANGUAGE ${SUPPORTED_COMPILER_LANGUAGE_LIST})
141141
## Intel O3 is extreme
142142
set(CMAKE_${COMPILER_LANGUAGE}_OPT_AGGRESSIVE "-O2")
143143
endif()
144+
if (CMAKE_${COMPILER_LANGUAGE}_COMPILER_ID STREQUAL "PGI")
145+
set(CMAKE_${COMPILER_LANGUAGE}_WARNING_ALL "")
146+
endif()
144147
endif()
145148

146149
endforeach()

0 commit comments

Comments
 (0)