Skip to content

Commit

Permalink
Merge branch 'develop' into rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dronir committed Oct 31, 2014
2 parents 65d6698 + b1f842b commit 3b374fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include(CheckLibraryExists)

project(PSR_EM Fortran C)

set(CMAKE_BUILD_TYPE RELEASE)

if(NOT UNIX)
message(FATAL_ERROR "Sorry, only Unix systems supported at the moment.")
endif()
Expand Down Expand Up @@ -156,8 +158,8 @@ endif()
if(${CMAKE_COMPILER_IS_GNUG77})
add_definitions("-ffree-line-length-none")

set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} " CACHE STRING "")
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -march=native -combine -ftree-vectorize -finline-functions" CACHE STRING "")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}" CACHE STRING "")
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -O3 -march=native -combine -ftree-vectorize -finline-functions" CACHE STRING "")

if(WITH_OPENMP)
add_definitions("-fopenmp")
Expand Down

0 comments on commit 3b374fb

Please sign in to comment.