mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
11
cmake/templates/xcode-launch-c.in
Normal file
11
cmake/templates/xcode-launch-c.in
Normal file
@@ -0,0 +1,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_C_COMPILER}" ]] ; then
|
||||
shift
|
||||
fi
|
||||
|
||||
export CCACHE_CPP2=true
|
||||
exec "${CCACHE_PROGRAM}" "${CMAKE_C_COMPILER}" "$@"
|
||||
11
cmake/templates/xcode-launch-cxx.in
Normal file
11
cmake/templates/xcode-launch-cxx.in
Normal file
@@ -0,0 +1,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}" "$@"
|
||||
Reference in New Issue
Block a user