Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

CMake Issues

Dal edited this page Jun 11, 2017 · 5 revisions

In some cases running the CMake .bat or .sh scripts may fail to generate a project for you. If this is the case, it is usually best to run the script from the command line (rather than double-clicking it in your file explorer) and look at the output to see if any error messages have been output.

A tell-tale sign that there is something wrong with the Visual Studio installation is when your command window shows multiple lines of "The system cannot find the path specified" and fails to generate a solution folder.

Visual Studio Components

In order for the scripts to successfully generate a Visual Studio solution using the CMake_2015.bat or CMake_2017.bat scripts, you must have the respective version of Visual Studio installed on your system. Since the VS2017 installation is modular you must also make sure you have all the necessary components installed for C++ and C# Windows development.

Visual Studio Preview Versions

When generating a VS2017 project the Atomic build scripts detect your Visual Studio path by looking in the Windows registry under "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7" and reading the "15.0" key. Installing a preview edition of VS2017 can rewrite this key to the path of the preview version. If you encounter problems generating a project with a preview version installed you may need to change this key to point to your release version of VS2017.

Clone this wiki locally