Anas Nashif | 3ae5262 | 2019-04-06 09:08:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
2 | |||||
Sebastian Bøe | 12f8f76 | 2017-10-27 15:43:34 +0200 | [diff] [blame] | 3 | # Use ccache if it is installed, unless the user explicitly disables |
4 | # it by setting USE_CCACHE=0. | ||||
5 | |||||
6 | if(USE_CCACHE STREQUAL "0") | ||||
7 | else() | ||||
8 | find_program(CCACHE_FOUND ccache) | ||||
9 | if(CCACHE_FOUND) | ||||
10 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) | ||||
11 | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) | ||||
12 | endif() | ||||
13 | endif() |