Skip to content
Permalink
Browse files

Fix #182 new macOS SDK doing weird things with their system headers

  • Loading branch information...
milot-mirdita committed Apr 4, 2019
1 parent 66e6282 commit bc4820038dff27114f24ffc156dfdd01a9a725d2
Showing with 8 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
@@ -50,6 +50,14 @@ if (CMAKE_COMPILER_IS_CLANG)
set(MMSEQS_CXX_FLAGS "${MMSEQS_CXX_FLAGS} -stdlib=libc++")
endif ()

# Apple specific features
if (APPLE)
# macOS SDK started using _Atomic (in ucred.h) which g++ does not support
# __APPLE_API_STRICT_CONFORMANCE makes sysctl.h not include apis like ucred.h
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864
set(MMSEQS_CXX_FLAGS "${MMSEQS_CXX_FLAGS} -D__APPLE_API_STRICT_CONFORMANCE")
endif ()

# zstd
SET(ZSTD_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/zstd")
SET(CMAKE_INSTALL_LIBDIR bin)

0 comments on commit bc48200

Please sign in to comment.
You can’t perform that action at this time.