我正在尝试使用Visual Studio 2017 CMake工具构建https://github.com/dotnet/coreclr/blob/master/src/ilasm/CMakeLists.txt。
但是,当我在Visual Studio中使用“打开文件夹”命令时,我收到此错误:
Severity Code Description Project File Line Suppression State
Error CMake Error at C:\!Projects\coreclr-master\src\ilasm\CMakeLists.txt:44 (_add_executable):
Unknown CMake command "_add_executable". C:\!Projects\coreclr-master\src\ilasm\CMakeLists.txt 44
代码:
_add_executable(ilasm
${ILASM_SOURCES}
${ILASM_RESOURCES}
)
我能做些什么来克服这个问题?