From 9e097109bc66f381a00ee9c98118dd6424048745 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 5 Jan 2022 19:15:35 +0100 Subject: [PATCH] cmake: allow assets at root of project in fxconv_declare_assets() --- fxsdk/cmake/Fxconv.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/fxsdk/cmake/Fxconv.cmake b/fxsdk/cmake/Fxconv.cmake index 8b946e4..f65db0e 100644 --- a/fxsdk/cmake/Fxconv.cmake +++ b/fxsdk/cmake/Fxconv.cmake @@ -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}")