diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index fe6a9672d88884cbcf509b343863ef8ae9704f44..85513997827d9a524eed85a97282fd285428718c 100644 --- a/scripts/cmake/CompilerSetup.cmake +++ b/scripts/cmake/CompilerSetup.cmake @@ -47,9 +47,13 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) add_compile_options( -Wall -Wextra - -Wno-c++98-compat-pedantic -DOPENMP_LOOP_TYPE=unsigned ) + if(NOT COMPILER_IS_INTEL) + add_compile_options( + -Wno-c++98-compat-pedantic + ) + endif() # Profiling if(OGS_PROFILE)