1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 14:04:30 +00:00

Workaround a cmake/ninja issue

This commit is contained in:
Evil Eye 2025-10-07 19:21:09 +02:00
parent e66d43c083
commit a501e1ad1c

View file

@ -38,6 +38,11 @@ endforeach (f)
# Concat data/builtin.omwscripts and data-mw/builtin-extra.omwscripts to create vfs-mw/builtin.omwscripts
set(builtinBase "${CMAKE_CURRENT_SOURCE_DIR}/../data/builtin.omwscripts")
# https://gitlab.kitware.com/cmake/cmake/-/issues/20181
if (NOT CMAKE_GENERATOR MATCHES "Ninja")
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${builtinBase}")
endif()
file(READ "${builtinBase}" BUILTIN_SCRIPTS)
configure_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/builtin-extra.omwscripts" "${OPENMW_RESOURCES_ROOT}" "resources/vfs-mw/builtin.omwscripts")