mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-23 20:22:40 +00:00
Add BUILD_PRX option to cmake
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
option(BUILD_PRX "Build a PRX for use with PSPLink" OFF)
|
||||
|
||||
macro(create_pbp_file)
|
||||
|
||||
set(oneValueArgs
|
||||
@@ -28,6 +30,11 @@ macro(create_pbp_file)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Build a PRX anyway if the -DBUILD_PRX=ON was set
|
||||
if(${BUILD_PRX})
|
||||
set(ARG_BUILD_PRX ${BUILD_PRX})
|
||||
endif()
|
||||
|
||||
if(NOT ${ARG_BUILD_PRX} AND ${ARG_ENC_PRX})
|
||||
message(WARNING "You are asking to encrypt PRX that is not built by this macro.\n"
|
||||
"ENC_PRX flag for target '${ARG_TARGET}' will be ignored.")
|
||||
|
||||
Reference in New Issue
Block a user