mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 10:11:34 +01:00 
			
		
		
		
	add proper include guard to tools, fixes #57
This commit is contained in:
		
							parent
							
								
									e7af9b28c2
								
							
						
					
					
						commit
						cde02f79cc
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -1,10 +1,7 @@ | ||||||
| # this file contains a list of tools that can be activated and downloaded on-demand each tool is | # this file contains a list of tools that can be activated and downloaded on-demand each tool is | ||||||
| # enabled during configuration by passing an additional `-DUSE_<TOOL>=<VALUE>` argument to CMake | # enabled during configuration by passing an additional `-DUSE_<TOOL>=<VALUE>` argument to CMake | ||||||
| 
 | 
 | ||||||
| # only activate tools for top level project | include_guard(DIRECTORY) | ||||||
| if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) |  | ||||||
|   return() |  | ||||||
| endif() |  | ||||||
| 
 | 
 | ||||||
| include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) | include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue