You can verify this by running cmake -version from the command line to see it is the version you just installed. ![]() Install the latest CMake on your machine (somewhere you have adequate permissions), and ensure it is available in your Path environment variable. If you decide to install CMake separately, the instructions would be the following: Hopefully, this doesn't require you re-install Visual Studio in another location on your machine, or run Visual Studio with elevated privileges, but perhaps that is necessary. This looks like a permissions issue, specifically while running CMake within Visual Studio, so be sure you have read/write access to all the files in your project, and the CMake packages in your Visual Studio installation. However, this is probably getting outside the scope of your immediate problem.Īs you follow the Microsoft's instructions for "CMake projects in Visual Studio", you mentioned receiving the error: 1> CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.17/Modules/CMakeDetermineSystem.cmake:173 (file):ġ> file failed to open for writing (No such file or directory): I would recommend installing the latest version of CMake on your machine separately, and configuring both Visual Studio and CLion to use that version instead. ![]() Now, you probably have two versions of CMake installed on your machine, one that came with CLion and one that came with Visual Studio. These instructions are pretty thorough and should provide everything needed to get your CMake project working in Visual Studio. ![]() The link provided describes Visual Studio's CMake integration, which (similar to CLion) will install a version of CMake that Visual Studio will use.
0 Comments
Leave a Reply. |