Commit 6f424fb7 authored by Elisa Rebolini's avatar Elisa Rebolini
Browse files

Merge branch 'feature-python_api-build_wheels' into 'master'

fix opt flag issues for macosX

See merge request !19
parents 3241cf67 c8922777
Pipeline #11784 passed with stages
in 15 minutes and 42 seconds
......@@ -31,7 +31,7 @@ macro(set_compiler_flags)
set(OPT_FLAGS2 "/O1 /Qparallel")
set(OPT_FLAGS3 "/O3 /Qparallel")
else()
set(OPT_FLAGS0 "/Od")
set(OPT_FLAGS0 "/Od")
set(OPT_FLAGS "/O2")
set(OPT_FLAGS1 "/Od")
set(OPT_FLAGS2 "/O1")
......@@ -44,6 +44,7 @@ macro(set_compiler_flags)
set(OPT_FLAGS "-g")
set(OPT_FLAGS1 "-g")
set(OPT_FLAGS0 "-O0")
set(OPT_FLAGS2 "-O1")
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_Fortran_FLAGS_RELEASE "-warn -cpp -qopt-report=0 -fPIC")
set(OPT_FLAGS0 "-O0")
......@@ -57,6 +58,7 @@ macro(set_compiler_flags)
set(OPT_FLAGS "-g")
set(OPT_FLAGS1 "-g")
set(OPT_FLAGS0 "-O0")
set(OPT_FLAGS2 "-O1")
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_Fortran_FLAGS_RELEASE "-warn -cpp -qopt-report=0 -fPIC")
set(OPT_FLAGS0 "-O0")
......@@ -125,11 +127,13 @@ macro(set_compiler_flags)
set(OPT_FLAGS "-g")
set(OPT_FLAGS1 "-g")
set(OPT_FLAGS0 "-g")
set(OPT_FLAGS2 "-g")
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_Fortran_FLAGS_RELEASE "-cpp -ffree-line-length-none -fPIC")
set(OPT_FLAGS "-O3")
set(OPT_FLAGS1 "-O0")
set(OPT_FLAGS0 "-O0")
set(OPT_FLAGS2 "-O1")
endif()
else()
if(CMAKE_BUILD_TYPE STREQUAL Debug)
......
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