another MacOS fix

This commit is contained in:
Markus Pilman 2020-04-23 13:11:09 -07:00
parent b58b035871
commit b313e63a77
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ function(use_libcxx out)
endfunction()
function(static_link_libcxx out)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(APPLE)
set("${out}" OFF PARENT_SCOPE)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
default_linker(linker)
if(NOT linker STREQUAL "LLD")
set("${out}" OFF PARENT_SCOPE)