MSBuild.exe has stopped cmake error

前端 未结 2 1965
傲寒
傲寒 2020-12-22 06:36

I was able to compile zlib yesterday with CMake but the only possible change was installing Windows 10 SDK 10.0.14393.33 and now that I configure it with the same choice (Vi

2条回答
  •  难免孤独
    2020-12-22 06:47

    I had a similar problem (running CMake in admin mode does change the search PATH environment it runs in).

    This problem is specific to msbuild and also does occur only in newer versions of CMake because the default build program was changed from devenv to msbuild.

    What did help in my case was to put the following code in my VS toolchain file:

    if (CMAKE_VS_DEVENV_COMMAND)
        set(CMAKE_MAKE_PROGRAM "${CMAKE_VS_DEVENV_COMMAND}" CACHE INTERNAL "")
    endif()
    

提交回复
热议问题