mirror of https://git.suyu.dev/suyu/suyu
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			481 B
		
	
	
	
		
			CMake
		
	
			
		
		
	
	
			13 lines
		
	
	
		
			481 B
		
	
	
	
		
			CMake
		
	
# buildcache wrapper
 | 
						|
OPTION(USE_CCACHE "Use buildcache for compilation" OFF)
 | 
						|
IF(USE_CCACHE)
 | 
						|
    FIND_PROGRAM(CCACHE buildcache)
 | 
						|
    IF (CCACHE)
 | 
						|
        MESSAGE(STATUS "Using buildcache found in PATH")
 | 
						|
        SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
 | 
						|
        SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
 | 
						|
    ELSE(CCACHE)
 | 
						|
        MESSAGE(WARNING "USE_CCACHE enabled, but no buildcache executable found")
 | 
						|
    ENDIF(CCACHE)
 | 
						|
ENDIF(USE_CCACHE)
 |