Lameguy64 / PSn00bSDK

The most powerful open source SDK for the PS1 (as far as open source PS1 SDKs go). Not recommended for beginner use.
Other
819 stars 66 forks source link

I can't compile, it says that there's an unknown command. #64

Closed Lufims closed 1 year ago

Lufims commented 1 year ago

When I try to compile it says that there's an unknown command on the cMakeLists.txt.

CMake Error at CMakeLists.txt:14 (psn00bsdk_add_executable): Unknown CMake command "psn00bsdk_add_executable".

spicyjpeg commented 1 year ago

You need to tell CMake where PSn00bSDK is by setting the CMAKE_TOOLCHAIN_FILE CMake variable to the full absolute path to lib/libpsn00b/cmake/sdk.cmake within the directory you installed PSn00bSDK into. You can do this in several ways:

You can find more information about setting up the toolchain file and basic usage of presets here.

Lufims commented 1 year ago

I did that, and now the issue is the other one that I posted, I created an environment variable to make it almost work