I have a C++ Project in Visual Studio 2022 (Windows 11) that is put together using CMake. I understand that the difference here is, that my project is not a Solution but rather just folders with code and the CMake tells it how to compile it?
But my problem is, that it doesn't seem to find C's standard libraries and shows error "cannot open sourcefile".
The error is definitely not in the project, since it runs just fine on my laptop, just not on the PC I want it to run on.
How can I tell it where these libraries are? Where are they located even? Any help would be greatly appreciated and I can share more files on request.
Things I have tried:
- Going to properties and choose the correct Windows SDK Version - The properties are empty
- Comparing every variable of the CMake Settings with the ones on my laptop where it works
- completely reinstalling Visual Studio (yes I did that)
- looking through lots of StackOverflow questions but none of them describe my problem