Silence warnings with GCC, LTO does not yet respect the -isystem switch
This commit is contained in:
		
							parent
							
								
									b1155a202c
								
							
						
					
					
						commit
						8f8bd05f83
					
				| @ -177,7 +177,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") | ||||
|     set(COLOR_FLAG "") | ||||
|   endif() | ||||
|   # using GCC | ||||
|   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wuninitialized -Wunreachable-code -Wstrict-overflow=2 -D_FORTIFY_SOURCE=2 ${COLOR_FLAG} -fPIC") | ||||
|   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wuninitialized -Wunreachable-code -Wstrict-overflow=1 -D_FORTIFY_SOURCE=2 ${COLOR_FLAG} -fPIC") | ||||
|   if(WIN32) # using mingw | ||||
|     add_definitions(-D_USE_MATH_DEFINES) # define M_PI, M_1_PI etc. | ||||
|     add_definitions(-DWIN32) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user