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:
parent
e66d43c083
commit
a501e1ad1c
1 changed files with 6 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue