Skip to content

Commit 9b96c73

Browse files
committed
Default to a debug build
1 parent ae55ca8 commit 9b96c73

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

example/ap203min/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ endif( EXISTS "${CMAKE_BINARY_DIR}/${STEPCODE_ROOT_DIR}/SC_VERSION.txt" )
2727
# Use STEPcode as library, but build from this build process.
2828
set( SC_IS_SUBBUILD TRUE )
2929

30-
# STEPcode build type, DEBUG or RELEASE
31-
set( SC_BUILD_TYPE DEBUG )
30+
# Build type, DEBUG or RELEASE
31+
if( NOT DEFINED CMAKE_BUILD_TYPE )
32+
set( CMAKE_BUILD_TYPE Debug )
33+
endif( NOT DEFINED CMAKE_BUILD_TYPE )
34+
set( SC_BUILD_TYPE ${CMAKE_BUILD_TYPE} )
3235

3336
# Path to STEPcode
3437
set( STEPCODE_BUILD_DIR ${CMAKE_BINARY_DIR}/sc CACHE PATH "STEPcode build subdir" )

0 commit comments

Comments
 (0)