We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b444076 commit b283d30Copy full SHA for b283d30
1 file changed
cmake/openvkl_macros.cmake
@@ -38,6 +38,9 @@ endmacro()
38
39
macro(openvkl_configure_build_type)
40
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()
44
if (WIN32)
45
if (NOT OPENVKL_DEFAULT_CMAKE_CONFIGURATION_TYPES_SET)
46
set(CMAKE_CONFIGURATION_TYPES "${CONFIGURATION_TYPES}"
@@ -46,9 +49,6 @@ macro(openvkl_configure_build_type)
49
CACHE INTERNAL "Default CMake configuration types set.")
47
50
endif()
48
51
else()
- if(NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type." FORCE)
- endif()
52
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CONFIGURATION_TYPES})
53
54
endmacro()
0 commit comments