Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cmake/ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,13 @@ macro(find_host_package)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
endmacro(find_host_package)
endmacro(find_host_package)

# This macro lets you find library on the host system
macro(find_host_library)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)

find_library(${ARGN})

set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
endmacro(find_host_library)