mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-23 15:37:51 +01:00
cmake: macOS: Add Xcode 8.3 build support (issue #2140)
This commit is contained in:
parent
b66cddb919
commit
33b52839c6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user