Add BUILD_PRX option to cmake

This commit is contained in:
Wouter Wijsman
2021-12-15 23:37:18 +01:00
committed by GitHub
parent a94a5e4027
commit 8911f4ea72

View File

@@ -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.")