aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9676e2f..210e280 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -131,7 +131,10 @@ endif()
if (WIN32)
target_link_libraries(core PRIVATE ole32 comctl32 ws2_32)
elseif(NOT APPLE)
- target_link_libraries(core PRIVATE rt)
+ check_library_exists(rt shm_open "" NEED_LIBRT)
+ if (NEED_LIBRT)
+ target_link_libraries(core PRIVATE rt)
+ endif()
endif()
if (ENABLE_JIT_PROFILING)