Skip to content

Commit b8010ba

Browse files
committed
Don't set CMAKE_DEFAULT_BUILD_TYPE for visual studio
1 parent b420c5c commit b8010ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/XRay.Configurations.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(XRAY_DEFAULT_BUILD_TYPE ReleaseMasterGold)
1111

1212
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
1313
if (is_multi_config)
14-
if (NOT CMAKE_DEFAULT_BUILD_TYPE)
14+
if (NOT CMAKE_DEFAULT_BUILD_TYPE AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
1515
set(CMAKE_DEFAULT_BUILD_TYPE ${XRAY_DEFAULT_BUILD_TYPE})
1616
endif()
1717
if (CMAKE_BUILD_TYPE)

0 commit comments

Comments
 (0)