From d305e1933abf0427b12ac84fe160249b61ecb88c Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Sun, 31 Mar 2019 17:41:16 +0200 Subject: [PATCH] Get ccache path from Homebrew Also, don't use legacy syntax to get Qt path. --- CI/before_script.osx.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CI/before_script.osx.sh b/CI/before_script.osx.sh index 5967756ab9..1c3a71bddf 100755 --- a/CI/before_script.osx.sh +++ b/CI/before_script.osx.sh @@ -4,14 +4,15 @@ export CXX=clang++ export CC=clang DEPENDENCIES_ROOT="/private/tmp/openmw-deps/openmw-deps" -QT_PATH=`brew --prefix qt` +QT_PATH=$(brew --prefix qt) +CCACHE_EXECUTABLE=$(brew --prefix ccache)/bin/ccache mkdir build cd build cmake \ -D CMAKE_PREFIX_PATH="$DEPENDENCIES_ROOT;$QT_PATH" \ --D CMAKE_C_COMPILER_LAUNCHER=/usr/local/opt/ccache/bin/ccache \ --D CMAKE_CXX_COMPILER_LAUNCHER=/usr/local/opt/ccache/bin/ccache \ +-D CMAKE_C_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \ +-D CMAKE_CXX_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \ -D CMAKE_OSX_DEPLOYMENT_TARGET="10.9" \ -D CMAKE_OSX_SYSROOT="macosx10.14" \ -D CMAKE_BUILD_TYPE=Release \