mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	Set CMAKE_EXPORT_COMPILE_COMMANDS too
This commit is contained in:
		
							parent
							
								
									a3bc933175
								
							
						
					
					
						commit
						95470160d8
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -6,6 +6,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) | ||||||
|   return() |   return() | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
|  | set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||||||
|  | 
 | ||||||
| include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) | include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) | ||||||
| 
 | 
 | ||||||
| # enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address, | # enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address, | ||||||
|  |  | ||||||
|  | @ -59,7 +59,7 @@ if(EXISTS ${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake) | ||||||
|   doctest_discover_tests(${PROJECT_NAME}) |   doctest_discover_tests(${PROJECT_NAME}) | ||||||
| else() | else() | ||||||
|   add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME}) |   add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME}) | ||||||
| endif | endif() | ||||||
| 
 | 
 | ||||||
| # ---- code coverage ---- | # ---- code coverage ---- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue