mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
fix: Switched to check_cxx_symbol_exists()
for libcxx detection
This commit is contained in:
@ -27,8 +27,8 @@ function(check_libcxx_in_use variable)
|
||||
message(CHECK_START "Checking if libc++ is being used")
|
||||
list(APPEND CMAKE_MESSAGE_INDENT " ")
|
||||
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(_LIBCPP_VERSION "ciso646" ${variable})
|
||||
include(CheckCXXSymbolExists)
|
||||
check_cxx_symbol_exists(_LIBCPP_VERSION "ciso646" ${variable})
|
||||
set(${variable} ${${variable}} PARENT_SCOPE)
|
||||
|
||||
list(POP_BACK CMAKE_MESSAGE_INDENT)
|
||||
|
@ -25,12 +25,12 @@ function(__check_libcxx_in_use variable)
|
||||
message(CHECK_START "Checking if libc++ is being used")
|
||||
list(APPEND CMAKE_MESSAGE_INDENT " ")
|
||||
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(_LIBCPP_VERSION "ciso646" ${variable})
|
||||
include(CheckCXXSymbolExists)
|
||||
check_cxx_symbol_exists(_LIBCPP_VERSION "ciso646" ${variable})
|
||||
set(${variable} ${${variable}} PARENT_SCOPE)
|
||||
|
||||
list(POP_BACK CMAKE_MESSAGE_INDENT)
|
||||
if(UNITS_LIBCXX)
|
||||
if(${variable})
|
||||
message(CHECK_PASS "found")
|
||||
else()
|
||||
message(CHECK_FAIL "not found")
|
||||
|
Reference in New Issue
Block a user