1
0
Fork 0

Fix MACOSX_DEPLOYMENT_TARGET absence case (#9574)

This commit is contained in:
KVS85 2019-07-25 20:33:12 +03:00 committed by Frank Celler
parent b62eee034b
commit 0fb224af78
1 changed files with 1 additions and 1 deletions

View File

@ -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}")