mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 23:06:40 +00:00
Display fatal error if OPENMW_ICU_HOST_BUILD_DIR is not set on Android
This commit is contained in:
parent
9a00ce1c20
commit
755c161ab7
1 changed files with 6 additions and 0 deletions
6
extern/CMakeLists.txt
vendored
6
extern/CMakeLists.txt
vendored
|
@ -248,6 +248,12 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
|
|||
# Note: Must be a build directory, not an install root, since the configure script
|
||||
# looks for a configuration file which does not get installed.
|
||||
set(OPENMW_ICU_HOST_BUILD_DIR "" CACHE STRING "A pre-built ICU build directory for the host system if cross-compiling")
|
||||
if (OPENMW_ICU_HOST_BUILD_DIR STREQUAL "")
|
||||
message(FATAL_ERROR "If cross-compiling on android you must set the \
|
||||
OPENMW_ICU_HOST_BUILD_DIR to the path of a pre-compiled build of \
|
||||
ICU 70.1 for the system doing the build, as ICU needs to be able \
|
||||
to run its own executables as part of the build process.")
|
||||
endif()
|
||||
# We need a host version of ICU so that the tools can be run when building the data library.
|
||||
set(NDK_STANDARD_ROOT ${CMAKE_ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64)
|
||||
string(REPLACE "android-" "" ANDROIDVER ${ANDROID_PLATFORM})
|
||||
|
|
Loading…
Reference in a new issue