mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	cmake: macOS: Add Xcode 8.3 build support (issue #2140)
This commit is contained in:
		| @@ -215,7 +215,7 @@ endif() | |||||||
|  |  | ||||||
| if(OS_MACOSX) | if(OS_MACOSX) | ||||||
|   # Platform-specific compiler/linker flags. |   # Platform-specific compiler/linker flags. | ||||||
|   # See also Xcode target properties in macros.cmake. |   # See also Xcode target properties in cef_macros.cmake. | ||||||
|   set(CEF_LIBTYPE SHARED) |   set(CEF_LIBTYPE SHARED) | ||||||
|   list(APPEND CEF_COMPILER_FLAGS |   list(APPEND CEF_COMPILER_FLAGS | ||||||
|     -fno-strict-aliasing            # Avoid assumptions regarding non-aliasing of objects of different types |     -fno-strict-aliasing            # Avoid assumptions regarding non-aliasing of objects of different types | ||||||
| @@ -259,6 +259,15 @@ if(OS_MACOSX) | |||||||
|     -Wl,-dead_strip                 # Strip dead code |     -Wl,-dead_strip                 # Strip dead code | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|  |   include(CheckCXXCompilerFlag) | ||||||
|  |  | ||||||
|  |   CHECK_CXX_COMPILER_FLAG(-Wno-undefined-var-template COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE) | ||||||
|  |   if(COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE) | ||||||
|  |     list(APPEND CEF_CXX_COMPILER_FLAGS | ||||||
|  |       -Wno-undefined-var-template   # Don't warn about potentially uninstantiated static members | ||||||
|  |       ) | ||||||
|  |   endif() | ||||||
|  |  | ||||||
|   # Standard libraries. |   # Standard libraries. | ||||||
|   set(CEF_STANDARD_LIBS |   set(CEF_STANDARD_LIBS | ||||||
|     -lpthread |     -lpthread | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user