Skip to content

Commit

Permalink
Replace the hard coded build type setting with an optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Jul 6, 2020
1 parent 47a1344 commit 860bcfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ project(ROSCO VERSION 2.0.1 LANGUAGES Fortran)

set(CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/ftnmods")

# Sets the optimization level to -O2 and includes -g
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
if (NOT CMAKE_BUILD_TYPE)
# Sets the optimization level to -O2 and includes -g for debugging
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the build type: Debug RelWithDebInfo Release" FORCE)
endif()

# Enable .dll export
if(APPLE OR UNIX)
Expand Down

0 comments on commit 860bcfe

Please sign in to comment.