xcodebuild_wrapper.in 465 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # Force 'Debug' configuration
  3. # Details: https://github.com/opencv/opencv/issues/13856
  4. if [[ "$@" =~ "-project CMAKE_TRY_COMPILE.xcodeproj" && -z "${OPENCV_SKIP_XCODEBUILD_FORCE_TRYCOMPILE_DEBUG}" ]]; then
  5. ARGS=()
  6. for ((i=1; i<=$#; i++))
  7. do
  8. arg=${!i}
  9. ARGS+=("$arg")
  10. if [[ "$arg" == "-configuration" ]]; then
  11. ARGS+=("Debug")
  12. i=$(($i+1))
  13. fi
  14. done
  15. set -- "${ARGS[@]}"
  16. fi
  17. @CMAKE_MAKE_PROGRAM@ @XCODEBUILD_EXTRA_ARGS@ $*