aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-11-04 12:57:48 +1000
committerfuzzard <fuzzard@kodi.tv>2023-11-04 12:57:48 +1000
commite1e876638be5e442e4d5c5e8c439115490dfcb7b (patch)
tree1263b0e8ce6dedf1a67f0aca78afe99f5ab2c1ff /cmake/scripts
parent55669b9bb0f8d99f885f4371c923a98d10ab91ec (diff)
[cmake] copy_file_to_buildtree make sure we create ExportFiles.cmake
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/common/Macros.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake
index 5e88639cb5..31d8f16e0e 100644
--- a/cmake/scripts/common/Macros.cmake
+++ b/cmake/scripts/common/Macros.cmake
@@ -245,6 +245,8 @@ function(copy_file_to_buildtree file)
COMMAND ${CMAKE_COMMAND} -DBUNDLEDIR=${_bundle_dir}
-P ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ExportFiles.cmake)
set_target_properties(export-files PROPERTIES FOLDER "Build Utilities")
+ # Add comment to ensure ExportFiles.cmake is created even if not used.
+ file(APPEND ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ExportFiles.cmake "# Export files to build tree\n")
endif()
if(${CORE_SYSTEM_NAME} MATCHES "windows")