Skip to content

Commit

Permalink
attempt at fixing compilation on the CI by removing -cpp flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanoseb committed Oct 8, 2024
1 parent 300ab73 commit a3589a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit a3589a1

Please sign in to comment.