mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01:00 
			
		
		
		
	CMake: use CMAKE_C_COMPILER_LAUNCHER instead of RULE_LAUNCH_COMPILE
as recommended by CMake maintainer https://gitlab.kitware.com/cmake/cmake/-/issues/22405#note_983593 Signed-off-by: Be <be@mixxx.org>
This commit is contained in:
		@@ -127,10 +127,12 @@ mark_as_advanced( FORCE SCCACHE_PROGRAM )
 | 
			
		||||
 | 
			
		||||
if( CCACHE_PROGRAM )
 | 
			
		||||
   message( STATUS "Found ccache: ${CCACHE_PROGRAM}" )
 | 
			
		||||
   set_property( GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}" )
 | 
			
		||||
   set( CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" )
 | 
			
		||||
   set( CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" )
 | 
			
		||||
elseif( SCCACHE_PROGRAM )
 | 
			
		||||
   message( STATUS "Found sccache: ${SCCACHE_PROGRAM}" )
 | 
			
		||||
   set_property( GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${SCCACHE_PROGRAM}" )
 | 
			
		||||
   set( CMAKE_C_COMPILER_LAUNCHER "${SCCACHE_PROGRAM}" )
 | 
			
		||||
   set( CMAKE_CXX_COMPILER_LAUNCHER "${SCCACHE_PROGRAM}" )
 | 
			
		||||
else()
 | 
			
		||||
   message( STATUS "Could NOT find ccache nor sccache, no compiler caching enabled" )
 | 
			
		||||
endif()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user