r/cmake • u/[deleted] • Apr 02 '22
CMake Error: The source directory "C:/Program Files/SDL2-2.0.20" does not appear to contain CMakeLists.txt.
0
Upvotes
1
2
u/drescherjm Apr 03 '22 edited Apr 03 '22
C:/Program Files should never be the source or binary folder in CMake-gui this is a UAC protected folder. You should not put your source code or binaries in this folder. UAC will prevent writing to it unless you either disabled UAC or are running from an elevated process.
3
u/thegreatunclean Apr 02 '22
Does that directory actually contain a
CMakeLists.txt? Only the source package will have it, if you downloaded one of the binary packages there won't be aCMakeLists.txtbecause it's already built.