when i use cmake on windows for installing ps5 sdk, some problem happend...

problems are belows…

Platform/Prospero to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
CMake Error at CMakeLists.txt:8 (set_property):
set_property could not find TARGET Main. Perhaps it has not yet been
created.

CMake Error at CMakeLists.txt:10 (set_property):
set_property given invalid scope VS_SOURCE_SETTINGS_WavePsslc. Valid
scopes are GLOBAL, DIRECTORY, TARGET, SOURCE, TEST, CACHE, INSTALL.

please help me with some comments.

The Main target needs to be created before you can set properties on it. Maybe something is out-of-order here?

This is invalid syntax. I suspect you have set_property(VS_SOURCE_SETTINGS) when it should (probably) be set_property(TARGET … PROPERTY VS_SOURCE_SETTINGS …).

1 Like