From a3589a1cf62272f18efa59fed3c7eb41f31b08a1 Mon Sep 17 00:00:00 2001 From: Sebastien Lemaire Date: Tue, 8 Oct 2024 16:36:36 +0000 Subject: [PATCH] attempt at fixing compilation on the CI by removing -cpp flag --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 87e266bb..8fa6ddb2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -58,11 +58,11 @@ if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "PGI" OR target_compile_options(xcompact PRIVATE "-DCUDA") elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU") if (NOT FLAGS_SET) - set(OpenMP_Fortran_FLAGS "-fopenmp" CACHE STRING "" FORCE) - set(OpenMP_Fortran_LIB_NAMES "gomp" CACHE STRING "" FORCE) - set(OpenMP_gomp_LIBRARY "-lgomp" CACHE STRING "" FORCE) + # set(OpenMP_Fortran_FLAGS "-fopenmp" CACHE STRING "" FORCE) + # set(OpenMP_Fortran_LIB_NAMES "gomp" CACHE STRING "" FORCE) + # set(OpenMP_gomp_LIBRARY "-lgomp" CACHE STRING "" FORCE) - set(CMAKE_Fortran_FLAGS "-cpp -std=f2018 -fallow-argument-mismatch" CACHE STRING "" FORCE) + set(CMAKE_Fortran_FLAGS "-std=f2018 -fallow-argument-mismatch" CACHE STRING "" FORCE) set(CMAKE_Fortran_FLAGS_DEBUG "-g -Og -Wall -Wpedantic -Werror -Wimplicit-interface -Wimplicit-procedure -Wno-unused-dummy-argument" CACHE STRING "" FORCE) set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -ffast-math -march=native" CACHE STRING "" FORCE) set(FLAGS_SET 1 CACHE INTERNAL "")