File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ export CORES=2
18
18
mkdir build
19
19
pushd build
20
20
21
- cmake -DWITH_CORE=OFF -DWITH_APIDOC=ON -DWITH_ASTYLE=ON -DENABLE_TESTS=ON ..
21
+ cmake -DUSE_CCACHE=OFF - DWITH_CORE=OFF -DWITH_APIDOC=ON -DWITH_ASTYLE=ON -DENABLE_TESTS=ON ..
22
22
23
23
popd
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ echo "travis_fold:start:cmake"
39
39
echo " ${bold} Running cmake...${endbold} "
40
40
cmake \
41
41
-GNinja \
42
+ -DUSE_CCACHE=OFF \
42
43
-DWITH_3D=ON \
43
44
-DWITH_STAGED_PLUGINS=ON \
44
45
-DWITH_GRASS=OFF \
Original file line number Diff line number Diff line change @@ -29,11 +29,14 @@ SET(CMAKE_COLOR_MAKEFILE ON)
29
29
SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} /cmake ${CMAKE_MODULE_PATH} )
30
30
31
31
# Configure CCache if available
32
- find_program (CCACHE_FOUND ccache )
33
- if (CCACHE_FOUND )
34
- set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache )
35
- set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ccache )
36
- endif (CCACHE_FOUND )
32
+ option (USE_CCACHE "Use ccache" ON )
33
+ if (USE_CCACHE )
34
+ find_program (CCACHE_FOUND ccache )
35
+ if (CCACHE_FOUND )
36
+ set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache )
37
+ set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ccache )
38
+ endif (CCACHE_FOUND )
39
+ endif ()
37
40
38
41
# in generated makefiles use relative paths so the project dir is moveable
39
42
# Note commented out since it cause problems but it would be nice to resolve these and enable
You can’t perform that action at this time.
0 commit comments