File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ endmacro()
3838
3939macro (openvkl_configure_build_type)
4040 set (CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo" )
41+ if (NOT CMAKE_BUILD_TYPE )
42+ set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
43+ endif ()
4144 if (WIN32 )
4245 if (NOT OPENVKL_DEFAULT_CMAKE_CONFIGURATION_TYPES_SET)
4346 set (CMAKE_CONFIGURATION_TYPES "${CONFIGURATION_TYPES} "
@@ -46,9 +49,6 @@ macro(openvkl_configure_build_type)
4649 CACHE INTERNAL "Default CMake configuration types set." )
4750 endif ()
4851 else ()
49- if (NOT CMAKE_BUILD_TYPE )
50- set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
51- endif ()
5252 set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CONFIGURATION_TYPES} )
5353 endif ()
5454endmacro ()
You can’t perform that action at this time.
0 commit comments