It offers me to use a CppProperties file, but i would like to use the CMakePresets file. But when selecting my WSL 2 I dont get any configs. On windows everything works well and i get the expected config and build presets. ![]() The supported generator in the Windows environment is Ninja. 2 hours ago &0183 &32 I am using VS22 and wanted to start using CMakePresets for my configs. After deleting unneeded entries in my path variable, the cmake can finally find the VS compiler and I get rid of this error.ĬMake Error at superbuild/cmake/SuperbuildUtils.cmake:45 (message):ĬMAKE_BUILD_TYPE must be one of: Release, RelWithDebInfo.īased on this link, I tried the following command:īut I still get this “CMAKE_BUILD_TYPE” error. You may need to set your CC/CXX or CMAKECCOMPILER /CMAKECXXCOMPILER string to icx. Then based on the adjusted path, cmake finds the compiler for MinGW/Strawberry for me at first. ![]() ![]() Today I found out that the visual studio interface only adjusts the path variable and sets some other variables. I tried to run the cmake via the visual studio interface, but I still got the “At least Visual Studio 9.0 is required” error. The Cmake-gui seems need more variables to be set, so I switched to the command line.Īctually, with Cmake-gui I get this error:ĬMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineRCCompiler.cmake:20 (message):Ĭould not find compiler set in environment variable RC:Ĭ:/Program Files/CMake/share/cmake-3.12/Modules/Platform/Windows-MSVC.cmake:380 (enable_language)Ĭ:/Program Files/CMake/share/cmake-3.12/Modules/Platform/Windows-MSVC-C.cmake:5 (_windows_compiler_msvc)Ĭ:/Program Files/CMake/share/cmake-3.12/Modules/CMakeCInformation.cmake:48 (include)ĬMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |