[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..
Bill Hoffman
bill.hoffman at kitware.com
Thu Jan 10 14:42:41 EST 2019
In the build trees, is there any more information in
CMakeFiles/CMakeOutput.log or CMakeFiles/CMakeError.log?
Is your VS able to build things without CMake?
-Bill
On 1/4/2019 1:46 PM, 2GooD Productions wrote:
>
> 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.cmake52
>
> 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/20190110/3151635a/attachment.html>
More information about the CMake
mailing list