Skip to content

Commit 9c1b632

Browse files
committed
Disable Edit and Continue when compiling with ClangCL
1 parent 3e9b8c4 commit 9c1b632

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ if(MSVC)
2020
# Disable SafeSEH: required to link BRender
2121
# TODO: fix FindBRender to set this correctly when compiling with ClangCL
2222
set(CMAKE_EXE_LINKER_FLAGS "/SAFESEH:NO")
23+
else()
24+
# Generate debug information for Edit and Continue / Hot Reload
25+
string(REPLACE "/Zi" "/ZI" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
26+
string(REPLACE "/Zi" "/ZI" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
2327
endif()
24-
25-
# Generate debug information for Edit and Continue / Hot Reload
26-
string(REPLACE "/Zi" "/ZI" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
27-
string(REPLACE "/Zi" "/ZI" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
2828
endif()
2929

3030
include(CMakeDependentOption)

0 commit comments

Comments
 (0)