@ -98,8 +98,17 @@ if(NOT DEFINED IPHONEOS_DEPLOYMENT_TARGET)
endif ( )
endif ( )
if ( NOT __IN_TRY_COMPILE )
if ( NOT __IN_TRY_COMPILE )
set ( _xcodebuild_wrapper "" )
if ( NOT ( CMAKE_VERSION VERSION_LESS "3.25.1" ) ) # > = 3 . 2 5 . 1
# n o w o r k a r o u n d i s required ( # 23156 )
elseif ( NOT ( CMAKE_VERSION VERSION_LESS "3.25.0" ) ) # > = 3 . 2 5 . 0 < 3 . 2 5 . 1
if ( NOT OPENCV_SKIP_MESSAGE_ISSUE_23156 )
message ( FATAL_ERROR "OpenCV: Please upgrade CMake to 3.25.1+. Current CMake version is ${CMAKE_VERSION}. Details: https://github.com/opencv/opencv/issues/23156" )
endif ( )
else ( ) # < 3 . 2 5 . 0 , a p p l y w o r k a r o u n d f r o m # 1 3 9 1 2
set ( _xcodebuild_wrapper "${CMAKE_BINARY_DIR}/xcodebuild_wrapper" )
set ( _xcodebuild_wrapper "${CMAKE_BINARY_DIR}/xcodebuild_wrapper" )
if ( NOT EXISTS "${_xcodebuild_wrapper}" )
endif ( )
if ( _xcodebuild_wrapper AND NOT EXISTS "${_xcodebuild_wrapper}" )
set ( _xcodebuild_wrapper_tmp "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/xcodebuild_wrapper" )
set ( _xcodebuild_wrapper_tmp "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/xcodebuild_wrapper" )
if ( NOT DEFINED CMAKE_MAKE_PROGRAM ) # e m p t y s i n c e C M a k e 3 . 1 0
if ( NOT DEFINED CMAKE_MAKE_PROGRAM ) # e m p t y s i n c e C M a k e 3 . 1 0
find_program ( XCODEBUILD_PATH "xcodebuild" )
find_program ( XCODEBUILD_PATH "xcodebuild" )
@ -119,8 +128,10 @@ if(NOT __IN_TRY_COMPILE)
configure_file ( "${CMAKE_CURRENT_LIST_DIR}/xcodebuild_wrapper.in" "${_xcodebuild_wrapper_tmp}" @ONLY )
configure_file ( "${CMAKE_CURRENT_LIST_DIR}/xcodebuild_wrapper.in" "${_xcodebuild_wrapper_tmp}" @ONLY )
file ( COPY "${_xcodebuild_wrapper_tmp}" DESTINATION ${ CMAKE_BINARY_DIR } FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
file ( COPY "${_xcodebuild_wrapper_tmp}" DESTINATION ${ CMAKE_BINARY_DIR } FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
endif ( )
endif ( )
if ( _xcodebuild_wrapper )
set ( CMAKE_MAKE_PROGRAM "${_xcodebuild_wrapper}" CACHE INTERNAL "" FORCE )
set ( CMAKE_MAKE_PROGRAM "${_xcodebuild_wrapper}" CACHE INTERNAL "" FORCE )
endif ( )
endif ( )
endif ( )
# S t a n d a r d s e t t i n g s
# S t a n d a r d s e t t i n g s
set ( CMAKE_SYSTEM_NAME iOS )
set ( CMAKE_SYSTEM_NAME iOS )