![]() The CXX compiler identification is GNU 4.8.1 So the following should work: $ cmake -G "MSYS Makefiles". Here it did find gcc and is complaining that I didn't gave it any parameters to work with. You start the MSys bash shell with msys.bat and just try to directly call gcc $ gcc at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\ InstallDir), system environment variables and - if none of the others did come up with something - plainly try to call the compiler. ![]() To determine the location of the compiler it uses a combination of searching the registry (e.g. Or use the Developer Command Prompt for VS2015 short-cut in your Windows Start Menu under All Programs/ Visual Studio 2015/ Visual Studio Tools (thanks at for the hint).īackground: CMake does support all Visual Studio releases and flavors (Express, Community, Professional, Premium, Test, Team, Enterprise, Ultimate, etc.). ![]() If that doesn't help, try to set the Visual Studio environment variables first (the path could vary): > "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" Try to select the correct generator version: > cmake -help In the previous build output directory look at CMakeFiles\CMakeError.log for any error message that make sense to you or try to open/compile the test project generated at CMakeFiles\\CompilerIdC| CompilerIdCXX directly from the command line (as found in the error log). Perfect if it correctly determined the generator to use - like here Visual Studio 14 2015 Is CMake able find and run with any/your default compiler? Run without giving a generator > cmake. as sub-directory of your source treeĪnd make sure your command shell points to your newly created binary output directory. You have a clean build directory (because CMake does cache things from the last try) e.g.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |