mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
set CMAKE_CROSSCOMPILING_EMULATOR to KATIE_CROSS_EXEC for convenience
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fda9300259
commit
fd6d1a65e1
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.3.0")
|
|||
cmake_policy(SET CMP0063 NEW)
|
||||
endif()
|
||||
|
||||
# set CMAKE_CROSSCOMPILING_EMULATOR so that manually specifying cache variables for the tests done
|
||||
# via katie_check_proc() is not required, CMAKE_CROSSCOMPILING_EMULATOR is supported by CMake v3.3+
|
||||
if(KATIE_CROSS_EXEC AND NOT CMAKE_CROSSCOMPILING_EMULATOR)
|
||||
set(CMAKE_CROSSCOMPILING_EMULATOR "${KATIE_CROSS_EXEC}")
|
||||
endif()
|
||||
|
||||
# LLVM linker does not have a default library search path, add some directories known to contain
|
||||
# system wide libraries. the headers search path is also incomplete
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "BSD")
|
||||
|
|
Loading…
Add table
Reference in a new issue