Commit 1d4d95de authored by Elisa Rebolini's avatar Elisa Rebolini

add fPIC flags for gfortran

parent 52a25d95
Pipeline #9318 passed with stages
in 13 minutes and 59 seconds
......@@ -113,12 +113,12 @@ macro(set_compiler_flags)
endif()
elseif(APPLE)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_Fortran_FLAGS_DEBUG "-cpp -Wall -ffree-line-length-none")
set(CMAKE_Fortran_FLAGS_DEBUG "-cpp -Wall -ffree-line-length-none -fPIC")
set(OPT_FLAGS "-g")
set(OPT_FLAGS1 "-g")
set(OPT_FLAGS0 "-g")
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_Fortran_FLAGS_RELEASE "-cpp -ffree-line-length-none")
set(CMAKE_Fortran_FLAGS_RELEASE "-cpp -ffree-line-length-none -fPIC")
set(OPT_FLAGS "-O3")
set(OPT_FLAGS1 "-O0")
set(OPT_FLAGS0 "-O0")
......
Markdown is supported
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