-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lasted cmake (3.24.2) did not genereate xxx.self
target in the makefile.
#215
Comments
Isn't a bug. That was done to support BYPRODUCTS in newer cmake |
Thank you for your replay. If I want to build the vpk which depends on some self files in the sub directory, I used I think just simply changes the DEPENDS to add_custom_target(vpk
echo "prepare for making ${PROJECT_NAME}.vpk ..."
COMMAND vita-mksfoex -s APP_VER=${VITA_VERSION} -s TITLE_ID=${VITA_TITLEID} ${VITA_APP_NAME} ${CMAKE_CURRENT_BINARY_DIR}/param.sfo
COMMAND vita-pack-vpk ${VITA_PACK_ARGS} ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.vpk
DEPENDS onsjh.self onsjh_vitagui.self
)
|
You can branch based on cmake version ( |
Thank you very much. This method works for both cmake. |
I used
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME})
in this cmake file.The command is
cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="$VITASDK/share/vita.toolchain.cmake"
to generate makefile.It seems that the lasted cmake generated the target
xxx.self-self
instaed ofxxx.self
.old cmake (3.19.5) has
onsjh.self
but the new cmake (3.24.2) changes to
onsjh.self-self
target.Here's my vita project https://github.com/YuriSizuku/psv-OnscripterJH
The text was updated successfully, but these errors were encountered: