[CMake] After working for a well over a year my cmake has suddenly stopped working, CMake Gui now fails to configure any project with the error..

2GooD Productions 2goodproductions at gmail.com
Fri Jan 4 13:46:25 EST 2019


>
> Selecting Windows SDK version 10.0.17763.0 to target Windows 6.3.9600.
>
> CMake Error at CMakeLists.txt:45 (project):
> Failed to run MSBuild command:
>
> C:/Program Files (x86)/Microsoft Visual
> Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
>
> to get the value of VCTargetsPath:
>
> The system cannot find the file specified
>
>
> Configuring incomplete, errors occurred! See also
> "G:/dev/CPP/libraries/LibraryBuilds/GLEW_TEST/CMakeFiles/CMakeOutput.log".
>

When I try to use VS2017 to build, I get this error...

CMake Error at C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52
>> (message):
>>
>   The C compiler
>
>
>>     "C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe"
>
>
>>   is not able to compile a simple test program.
>
>
>>   It fails with the following output:
>
>
>>     Change Dir:
>> C:/Users/2Good/CMakeBuilds/774fd661-ecad-c93e-a053-ab53694fc56d/build/x64-Debug
>> (default)/CMakeFiles/CMakeTmp
>
>
>
>     Run Build Command:"C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe"
>> "cmTC_5cf10"
>
>     ninja: fatal: couldn't open nul
>
>
>
>
>>
>
>
>>   CMake will not be able to correctly generate this project. C:/Program
>> Files (x86)/Microsoft Visual
>> Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake
>> 52
>
> Yes, Im a noob, but I could really use some help, Ive been trying to fix
this for over a week. Ive reinstalled CMake, VS2017, and MSBuild, added to
the environment path variable the path to the compiler, but nothing Ive
done has worked. Ive ran VS2017 as admin, Ive ran Cmake as admin. Can
somebody please help this noob out?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190104/de20dae9/attachment.html>


More information about the CMake mailing list