1 parent ae55ca8 commit 9b96c73Copy full SHA for 9b96c73
1 file changed
example/ap203min/CMakeLists.txt
@@ -27,8 +27,11 @@ endif( EXISTS "${CMAKE_BINARY_DIR}/${STEPCODE_ROOT_DIR}/SC_VERSION.txt" )
27
# Use STEPcode as library, but build from this build process.
28
set( SC_IS_SUBBUILD TRUE )
29
30
-# STEPcode build type, DEBUG or RELEASE
31
-set( SC_BUILD_TYPE DEBUG )
+# Build type, DEBUG or RELEASE
+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} )
35
36
# Path to STEPcode
37
set( STEPCODE_BUILD_DIR ${CMAKE_BINARY_DIR}/sc CACHE PATH "STEPcode build subdir" )
0 commit comments