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
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 0 deletions

View File

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