Blame view

3rdparty/opencv-4.5.4/cmake/templates/xcode-launch-cxx.in 323 Bytes
f4334277   Hu Chunming   提交3rdparty
1
2
3
4
5
6
7
8
9
10
11
  #!/bin/sh
  # https://crascit.com/2016/04/09/using-ccache-with-cmake/
  
  # Xcode generator doesn't include the compiler as the
  # first argument, Ninja and Makefiles do. Handle both cases.
  if [[ "$1" = "${CMAKE_CXX_COMPILER}" ]] ; then
      shift
  fi
  
  export CCACHE_CPP2=true
  exec "${CCACHE_PROGRAM}" "${CMAKE_CXX_COMPILER}" "$@"