Skip to content

Commit

Permalink
Merge pull request NREL#14 from rafmudaf/master
Browse files Browse the repository at this point in the history
Replace the hard-coded CMAKE_BUILD_TYPE with an optional parameter
  • Loading branch information
nikhar-abbas authored Jul 6, 2020
2 parents 47a1344 + 860bcfe commit 526eb12
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 526eb12

Please sign in to comment.