mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 01:00:09 +00:00
Only create output directory if it was set
This commit is contained in:
@@ -34,8 +34,7 @@ macro(create_pbp_file)
|
|||||||
# set output directory to where the target is build if not set
|
# set output directory to where the target is build if not set
|
||||||
if (NOT DEFINED ARG_OUTPUT_DIR)
|
if (NOT DEFINED ARG_OUTPUT_DIR)
|
||||||
set(ARG_OUTPUT_DIR $<TARGET_FILE_DIR:${ARG_TARGET}>)
|
set(ARG_OUTPUT_DIR $<TARGET_FILE_DIR:${ARG_TARGET}>)
|
||||||
endif()
|
else()
|
||||||
|
|
||||||
# Make sure the output directory exists
|
# Make sure the output directory exists
|
||||||
if(NOT IS_DIRECTORY ${ARG_OUTPUT_DIR})
|
if(NOT IS_DIRECTORY ${ARG_OUTPUT_DIR})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
@@ -44,6 +43,7 @@ macro(create_pbp_file)
|
|||||||
${ARG_OUTPUT_DIR}
|
${ARG_OUTPUT_DIR}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# As pack-pbp takes undefined arguments in form of "NULL" string,
|
# As pack-pbp takes undefined arguments in form of "NULL" string,
|
||||||
# set each undefined macro variable to such value:
|
# set each undefined macro variable to such value:
|
||||||
|
Reference in New Issue
Block a user