1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Disable thread safety annotations on AppleClang

This commit is contained in:
Jason Rhinelander 2020-04-21 16:42:10 -03:00
parent b2bd555965
commit a75015bc64

View file

@ -156,7 +156,8 @@ if (NOT MSVC_VERSION)
add_compile_options(-Wno-unused-function -Wno-deprecated-declarations -Wno-unknown-pragmas)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# STREQUAL because AppleClang's libc++ doesn't yet support thread safety annotations
add_compile_options(-Wthread-safety)
endif()