We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d213140 commit 4e4e17fCopy full SHA for 4e4e17f
1 file changed
src/CMakeLists.txt
@@ -6,5 +6,14 @@ FILE(GLOB_RECURSE SRCS
6
)
7
add_library(${TARGET} SHARED ${SRCS} ${USRC})
8
9
+# OS X 11.x doesn't have /usr/lib/libSystem.dylib and needs an explicit setting.
10
+if ( APPLE AND NOT EXISTS /usr/lib/libSystem.dylib)
11
+ message(STATUS "apple...")
12
+ set(CMAKE_C_COMPILER /usr/bin/clang)
13
+ target_link_libraries(${TARGET} -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib)
14
+ target_link_libraries(${TARGET} -lsystem)
15
+endif()
16
+
17
18
set_target_properties(${TARGET} PROPERTIES SUFFIX ".so")
19
set_target_properties(${TARGET} PROPERTIES PREFIX "")
0 commit comments