Move the Clang flags to the CMAKE_CXX_FLAGS_RELEASE, and add another flag.
This commit is contained in:
		
							parent
							
								
									f472878180
								
							
						
					
					
						commit
						8739623a08
					
				| @ -57,8 +57,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) | ||||
|     if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${MINIMAL_CLANG}) | ||||
|         message(FATAL_ERROR "Clang ${MINIMAL_CLANG} or higher is required.") | ||||
|     endif() | ||||
|     set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") | ||||
|     set(CMAKE_CXX_FLAGS "-fwhole-program-vtables ${CMAKE_CXX_FLAGS}") | ||||
|     set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fwhole-program-vtables -fstrict-vtable-pointers") | ||||
| endif() | ||||
| 
 | ||||
| if (MINGW OR MSVC) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user