Skip to content

Commit 908ab63

Browse files
committed
unset CMAKE_DEFAULT_BUILD_TYPE for visual studio generator
1 parent c330a6f commit 908ab63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/XRay.Configurations.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ if (is_multi_config)
1818
message(WARNING "CMAKE_BUILD_TYPE is ignored with multi-config generator.")
1919
unset(CMAKE_BUILD_TYPE)
2020
endif()
21+
if (CMAKE_GENERATOR MATCHES "Visual Studio")
22+
unset(CMAKE_DEFAULT_BUILD_TYPE)
23+
endif()
2124
else()
2225
message(DEBUG "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
2326
if (NOT CMAKE_BUILD_TYPE)

0 commit comments

Comments
 (0)