cmake: allow assets at root of project in fxconv_declare_assets()

This commit is contained in:
Lephenixnoir 2022-01-05 19:15:35 +01:00
parent b777fe76f6
commit 9e097109bc
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -11,6 +11,7 @@ function(fxconv_declare_assets)
# Set up a dependency to the local fxconv-metadata.txt # Set up a dependency to the local fxconv-metadata.txt
if(DEFINED CONV_WITH_METADATA) if(DEFINED CONV_WITH_METADATA)
get_filename_component(DIR "${ASSET}" DIRECTORY) get_filename_component(DIR "${ASSET}" DIRECTORY)
get_filename_component(DIR "${DIR}" ABSOLUTE)
set(METADATA "${DIR}/fxconv-metadata.txt") set(METADATA "${DIR}/fxconv-metadata.txt")
get_filename_component(METADATA "${METADATA}" ABSOLUTE get_filename_component(METADATA "${METADATA}" ABSOLUTE
BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")