mirror of https://gitee.com/bigwinds/arangodb
Fix MACOSX_DEPLOYMENT_TARGET absence case (#9574)
This commit is contained in:
parent
b62eee034b
commit
0fb224af78
|
@ -579,7 +579,7 @@ endif()
|
|||
|
||||
if (CMAKE_COMPILER_IS_CLANG)
|
||||
if (APPLE)
|
||||
if ($ENV{MACOSX_DEPLOYMENT_TARGET} STREQUAL "")
|
||||
if (NOT DEFINED ENV{MACOSX_DEPLOYMENT_TARGET} OR ENV{MACOSX_DEPLOYMENT_TARGET} STREQUAL "")
|
||||
set(BASE_CXX_FLAGS "${BASE_CXX_FLAGS} -stdlib=libc++")
|
||||
else ()
|
||||
set(BASE_C_FLAGS "${BASE_C_FLAGS} -mmacosx-version-min=$ENV{MACOSX_DEPLOYMENT_TARGET}")
|
||||
|
|
Loading…
Reference in New Issue