mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Fix cross-compile to consider CMAKE_CROSSCOMPILING_EMULATOR
When CMAKE_CROSSCOMPILING_EMULATOR is defined, a cross-compile can be made, however with native (emulated) execution possible. This commit takes those points in the build system that execute built targets natively and allow these to be executed in a crosscompile if CMAKE_CROSSCOMPILING_EMULATOR is defined. Closes #1805
This commit is contained in:
parent
d1f2001ee6
commit
1715fef107
7 changed files with 13 additions and 13 deletions
|
|
@ -405,7 +405,7 @@ if(NOT ${GRN_WITH_MECAB} STREQUAL "no")
|
|||
set(MECAB_LIBRARIES libmecab)
|
||||
else()
|
||||
set(GRN_MECAB_CONFIG "mecab-config" CACHE FILEPATH "mecab-config path")
|
||||
if(NOT CMAKE_CROSSCOMPILING)
|
||||
if(NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR)
|
||||
find_program(GRN_MECAB_CONFIG_ABSOLUTE_PATH "${GRN_MECAB_CONFIG}")
|
||||
endif()
|
||||
if(EXISTS "${GRN_MECAB_CONFIG_ABSOLUTE_PATH}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue