mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
323 B
11 lines
323 B
#!/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}" "$@"
|
|
|