File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -602,9 +602,15 @@ set(CMAKE_SYSTEM_FRAMEWORK_PATH
602602 ${CMAKE_OSX_SYSROOT} /System /Library/PrivateFrameworks
603603 ${CMAKE_OSX_SYSROOT} /Developer/Library/Frameworks)
604604# Only search the specified iOS SDK, not the remainder of the host filesystem.
605- set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
606- set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
607- set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
605+ if ( NOT CMAKE_FIND_ROOT_PATH_MODE_PROGRAM )
606+ set ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
607+ endif ()
608+ if ( NOT CMAKE_FIND_ROOT_PATH_MODE_LIBRARY )
609+ set ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
610+ endif ()
611+ if ( NOT CMAKE_FIND_ROOT_PATH_MODE_INCLUDE )
612+ set ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
613+ endif ()
608614
609615#
610616# Some helper-macros below to simplify and beautify the CMakeFile
You can’t perform that action at this time.
0 commit comments