Skip to content

Commit 9ae32a3

Browse files
Kylmakallelevlam
authored andcommitted
unset CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
1 parent 0917763 commit 9ae32a3

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎CMake/iOS.cmake‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ set (CMAKE_SYSTEM_FRAMEWORK_PATH
253253
)
254254

255255
# only search the iOS sdks, not the remainder of the host filesystem
256-
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
257256
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
258257
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
259258

@@ -264,15 +263,13 @@ endmacro (set_xcode_property)
264263

265264
# This macro lets you find executable programs on the host system
266265
macro (find_host_package)
267-
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
268266
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
269267
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
270268
set (IOS FALSE)
271269

272270
find_package(${ARGN})
273271

274272
set (IOS TRUE)
275-
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
276273
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
277274
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
278275
endmacro (find_host_package)

0 commit comments

Comments
 (0)