Skip to content

Commit

Permalink
[cmake] add find_host_library into iOS toolchain file (cocos2d#19230)
Browse files Browse the repository at this point in the history
  • Loading branch information
drelaptop committed Jan 16, 2019
1 parent 0a4adb1 commit e60ae0a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmake/ios.toolchain.cmake
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)

0 comments on commit e60ae0a

Please sign in to comment.