mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 18:21:35 +01:00 
			
		
		
		
	modernize the cmake files a bit
try to use a namespace for cmake config package
This commit is contained in:
		
							parent
							
								
									ed4ff7833a
								
							
						
					
					
						commit
						bf9cb6c214
					
				
					 9 changed files with 83 additions and 38 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| set(CPM_DOWNLOAD_VERSION 0.27.2) | ||||
| set(CPM_DOWNLOAD_VERSION 0.28.2) | ||||
| 
 | ||||
| if(CPM_SOURCE_CACHE) | ||||
|   set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||||
|  |  | |||
|  | @ -8,6 +8,8 @@ endif() | |||
| 
 | ||||
| include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) | ||||
| 
 | ||||
| set(USE_STATIC_ANALYZER "" CACHE STRING "clang-tidy;cppcheck;iwyu") | ||||
| 
 | ||||
| # enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address, | ||||
| # Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined' | ||||
| if(USE_SANITIZER OR USE_STATIC_ANALYZER) | ||||
|  | @ -65,10 +67,11 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER) | |||
| endif() | ||||
| 
 | ||||
| # enables CCACHE support through the USE_CCACHE flag possible values are: YES, NO or equivalent | ||||
| option(USE_CCACHE "enable ccache usages" ON) | ||||
| if(USE_CCACHE) | ||||
|   CPMAddPackage( | ||||
|     NAME Ccache.cmake | ||||
|     GITHUB_REPOSITORY TheLartians/Ccache.cmake | ||||
|     VERSION 1.2.1 | ||||
|     VERSION 1.2.2 | ||||
|   ) | ||||
| endif() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue