Skip to content

CMake Errors / Win 10 / VS 2022 #410

Answered by Kybernaut000
Kybernaut000 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I solved it. Might be completely obvious for anyone who's into CMake, but for me it took a while. As expected the problem was in CmakePresets.json. The generator is "Unix makefiles". I had to change this to "Visual Studio 17 2022" and was able to make and compile it.

So basically I did:

"configurePresets": [
     {
-      "name": "dev",
-      "displayName": "Development Mode",
+      "name": "devUNIX",
+      "displayName": "Development Mode - Unix Makefiles",
       "description": "Build with warnings and debug symbols",
       "binaryDir": "build",
       "generator": "Unix Makefiles",

and

+    {
+      "name": "devMSVC2022",
+      "displayName": "Development Mode - Visual Stu…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Kybernaut000
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Kybernaut000
Comment options

You must be logged in to vote
2 replies
@Kybernaut000
Comment options

@alandefreitas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants