Skip to content

Commit

Permalink
Make sure psp-build-exports is actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Oct 31, 2024
1 parent 388c583 commit d1ca1d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base/AddPrxModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function(add_prx_module name)
get_filename_component(FILE_EXTENSION ${FILE} EXT)

# Generate a .c file from .exp files
if (${FILE_EXTENSION} EQUAL ".exp")
if ("${FILE_EXTENSION}" MATCHES ".exp")
# Get the filename without extension
get_filename_component(EXP_FILE_NAME ${FILE} NAME_WE)

Expand All @@ -21,9 +21,9 @@ function(add_prx_module name)
# Add a custom command for each .exp file to generate a .c file
add_custom_command(
OUTPUT ${GENERATED_C_FILE}
COMMAND psp-build-exports -b ${EXP_FILE} > ${GENERATED_C_FILE}
DEPENDS ${EXP_FILE}
COMMENT "Generating ${EXP_FILE_NAME}.c from ${EXP_FILE_NAME}.exp"
COMMAND psp-build-exports -b ${FILE} > ${GENERATED_C_FILE}
DEPENDS ${FILE}
COMMENT "Generating ${EXP_FILE_NAME}.c from ${FILE}"
)

# Add the generated .c file to the list
Expand Down

0 comments on commit d1ca1d6

Please sign in to comment.