Add cmake option to enable debug logs
It can be enabled with -DENABLE_DEBUG_LOG=ON
This commit is contained in:
		
							parent
							
								
									cddda71cfb
								
							
						
					
					
						commit
						1b9225dd2a
					
				| @ -28,6 +28,12 @@ add_compile_options(-Wall -Wextra -Wformat | ||||
| set(CMAKE_C_STANDARD 11) | ||||
| set(CMAKE_C_EXTENSIONS FALSE) | ||||
| 
 | ||||
| option(ENABLE_DEBUG_LOG "Enable debug messages (very verbose)") | ||||
| 
 | ||||
| if(ENABLE_DEBUG_LOG) | ||||
| 	add_definitions(-DENABLE_DEBUG) | ||||
| endif() | ||||
| 
 | ||||
| include(CheckIPOSupported) | ||||
| check_ipo_supported(RESULT ipo_available OUTPUT error LANGUAGES C) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user