Skip to content

Commit abc4c65

Browse files
authored
Fix -msbuild build for Clr subset (#118206)
1 parent ac764af commit abc4c65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coreclr/interpreter/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ endif()
4949

5050
add_library_clr(clrinterpreter ${LIBRARY_TYPE} ${INTERPRETER_SOURCES})
5151

52-
set_target_properties(clrinterpreter PROPERTIES EXCLUDE_FROM_ALL $<NOT:${FEATURE_INTERPRETER}>)
52+
if (NOT CMAKE_GENERATOR MATCHES "Visual Studio")
53+
set_target_properties(clrinterpreter PROPERTIES EXCLUDE_FROM_ALL $<NOT:${FEATURE_INTERPRETER}>)
54+
endif()
5355

5456
add_dependencies(clrinterpreter interpreter_exports)
5557

0 commit comments

Comments
 (0)