diff --git a/src/coreclr/interpreter/CMakeLists.txt b/src/coreclr/interpreter/CMakeLists.txt index a9b6719748d776..3c0b977fca8490 100644 --- a/src/coreclr/interpreter/CMakeLists.txt +++ b/src/coreclr/interpreter/CMakeLists.txt @@ -49,7 +49,9 @@ endif() add_library_clr(clrinterpreter ${LIBRARY_TYPE} ${INTERPRETER_SOURCES}) -set_target_properties(clrinterpreter PROPERTIES EXCLUDE_FROM_ALL $) +if (NOT CMAKE_GENERATOR MATCHES "Visual Studio") + set_target_properties(clrinterpreter PROPERTIES EXCLUDE_FROM_ALL $) +endif() add_dependencies(clrinterpreter interpreter_exports)