mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
use ccache if available
This commit is contained in:
parent
3113d1ca30
commit
ad70693999
@ -35,6 +35,13 @@ if(${RAGEL} STREQUAL "RAGEL-NOTFOUND")
|
|||||||
message(FATAL_ERROR "Ragel state machine compiler not found")
|
message(FATAL_ERROR "Ragel state machine compiler not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Add ccache to speed builds
|
||||||
|
find_program(CCACHE_FOUND ccache)
|
||||||
|
if(CCACHE_FOUND)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||||
|
endif(CCACHE_FOUND)
|
||||||
|
|
||||||
# Build type check
|
# Build type check
|
||||||
|
|
||||||
if (NOT CMAKE_BUILD_TYPE)
|
if (NOT CMAKE_BUILD_TYPE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user