2019-09-09 18:19:43 +00:00
|
|
|
set (DEFAULT_LIBS "-nodefaultlibs")
|
|
|
|
|
2019-09-11 10:01:38 +00:00
|
|
|
set (DEFAULT_LIBS "${DEFAULT_LIBS} ${COVERAGE_OPTION} -lc -lm -lpthread -ldl")
|
2019-09-09 18:19:43 +00:00
|
|
|
|
|
|
|
message(STATUS "Default libraries: ${DEFAULT_LIBS}")
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD_LIBRARIES ${DEFAULT_LIBS})
|
|
|
|
set(CMAKE_C_STANDARD_LIBRARIES ${DEFAULT_LIBS})
|
|
|
|
|
2019-10-30 07:01:53 +00:00
|
|
|
# Minimal supported SDK version
|
2020-11-27 16:33:16 +00:00
|
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
|
2019-10-30 07:01:53 +00:00
|
|
|
|
2019-09-09 18:19:43 +00:00
|
|
|
# Unfortunately '-pthread' doesn't work with '-nodefaultlibs'.
|
|
|
|
# Just make sure we have pthreads at all.
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
2023-05-03 08:09:11 +00:00
|
|
|
include (cmake/unwind.cmake)
|
2022-01-31 07:26:07 +00:00
|
|
|
include (cmake/cxx.cmake)
|
2022-11-15 16:53:24 +00:00
|
|
|
link_libraries(global-group)
|
2019-09-09 18:19:43 +00:00
|
|
|
|
|
|
|
target_link_libraries(global-group INTERFACE
|
|
|
|
$<TARGET_PROPERTY:global-libs,INTERFACE_LINK_LIBRARIES>
|
|
|
|
)
|