mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-04 05:08:57 +08:00 
			
		
		
		
	mdbx-cmake: minor/cosmetics unify quoting for add_compile_flags().
				
					
				
			Change-Id: Idad9dccaedb71be42adb4366a7a995ccf7ab8db8
This commit is contained in:
		@@ -533,7 +533,7 @@ macro(setup_compile_flags)
 | 
				
			|||||||
    add_compile_flags("C;CXX" "-fexceptions")
 | 
					    add_compile_flags("C;CXX" "-fexceptions")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
  if(CC_HAS_FCXX_EXCEPTIONS)
 | 
					  if(CC_HAS_FCXX_EXCEPTIONS)
 | 
				
			||||||
    add_compile_flags("CXX" "-fcxx-exceptions -frtti")
 | 
					    add_compile_flags("CXX" "-fcxx-exceptions" "-frtti")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
  if(MSVC)
 | 
					  if(MSVC)
 | 
				
			||||||
    # checks for /EHa or /clr options exists,
 | 
					    # checks for /EHa or /clr options exists,
 | 
				
			||||||
@@ -583,13 +583,13 @@ macro(setup_compile_flags)
 | 
				
			|||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(CC_HAS_WNO_UNKNOWN_PRAGMAS AND NOT HAVE_OPENMP)
 | 
					  if(CC_HAS_WNO_UNKNOWN_PRAGMAS AND NOT HAVE_OPENMP)
 | 
				
			||||||
    add_compile_flags("C;CXX" -Wno-unknown-pragmas)
 | 
					    add_compile_flags("C;CXX" "-Wno-unknown-pragmas")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(CC_HAS_SECTIONS)
 | 
					  if(CC_HAS_SECTIONS)
 | 
				
			||||||
    add_compile_flags("C;CXX" -ffunction-sections -fdata-sections)
 | 
					    add_compile_flags("C;CXX" "-ffunction-sections" "-fdata-sections")
 | 
				
			||||||
  elseif(MSVC)
 | 
					  elseif(MSVC)
 | 
				
			||||||
    add_compile_flags("C;CXX" /Gy)
 | 
					    add_compile_flags("C;CXX" "/Gy")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # We must set -fno-omit-frame-pointer here, since we rely
 | 
					  # We must set -fno-omit-frame-pointer here, since we rely
 | 
				
			||||||
@@ -649,11 +649,11 @@ macro(setup_compile_flags)
 | 
				
			|||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(ENABLE_ASAN)
 | 
					  if(ENABLE_ASAN)
 | 
				
			||||||
    add_compile_flags("C;CXX" -fsanitize=address)
 | 
					    add_compile_flags("C;CXX" "-fsanitize=address")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(ENABLE_UBSAN)
 | 
					  if(ENABLE_UBSAN)
 | 
				
			||||||
    add_compile_flags("C;CXX" -fsanitize=undefined)
 | 
					    add_compile_flags("C;CXX" "-fsanitize=undefined")
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(ENABLE_GCOV)
 | 
					  if(ENABLE_GCOV)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user