Skip to content
Snippets Groups Projects
Commit 39ec833b authored by Christoph Alt's avatar Christoph Alt
Browse files

removed pgi compiler

parent 2a9d4608
Branches
No related merge requests found
Pipeline #75897 failed with stages
in 1 hour and 42 seconds
......@@ -238,14 +238,6 @@ else()
endif()
mark_as_advanced ( WALBERLA_CXX_COMPILER_IS_CRAY )
if( CMAKE_CXX_COMPILER MATCHES "pgc\\+\\+" OR CMAKE_CXX_COMPILER_ARG1 MATCHES "pgc\\+\\+" )
option ( WALBERLA_CXX_COMPILER_IS_PGI "Use PGI compiler" ON )
include(PGI)
else()
option ( WALBERLA_CXX_COMPILER_IS_PGI "Use PGI compiler" OFF )
endif()
mark_as_advanced ( WALBERLA_CXX_COMPILER_IS_PGI )
# Check for Fujitsu compiler
if( CMAKE_CXX_COMPILER_ID MATCHES FujitsuClang )
option ( WALBERLA_CXX_COMPILER_IS_FUJITSUCLANG "Use FujitsuClang compiler" ON )
......@@ -961,4 +953,4 @@ waLBerla_export()
############################################################################################################################
waLBerla_link_files_to_builddir( .clang-tidy )
add_subdirectory( utilities )
add_subdirectory( utilities )
\ No newline at end of file
message(STATUS "Setting PGI specific compiler options")
# Silences compiler and linker warnings and information with the PGI compiler
add_flag(CMAKE_CXX_FLAGS "--display_error_number")
add_flag(CMAKE_C_FLAGS "--display_error_number")
if(CMAKE_VERSION VERSION_LESS "3.19")
# https://github.com/Kitware/CMake/commit/52eee1938919deb59cc2b51d44f365f0d9a418e5
set(CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION
"--c++${CMAKE_CXX_STANDARD}")
endif()
add_flag(CMAKE_CXX_FLAGS "--diag_suppress=1") # last line of file ends without a
# newline
add_flag(CMAKE_CXX_FLAGS "--diag_suppress=111") # statement is unreachable
add_flag(CMAKE_C_FLAGS "--diag_suppress=111") # statement is unreachable
add_flag(CMAKE_C_FLAGS "--diag_suppress=550") # variable [...] was set but never
# used
add_flag(CMAKE_C_FLAGS "--diag_suppress=191") # type qualifier is meaningless on
# cast type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment