diff --git a/libs/indicore/CMakeLists.txt b/libs/indicore/CMakeLists.txt index aede82caff..d8117afb49 100644 --- a/libs/indicore/CMakeLists.txt +++ b/libs/indicore/CMakeLists.txt @@ -51,7 +51,9 @@ if(UNIX) list(APPEND ${PROJECT_NAME}_SOURCES sharedblob_parse.cpp shm_open_anon.c) - target_link_libraries(${PROJECT_NAME} rt) + if(UNIX AND NOT APPLE) + target_link_libraries(${PROJECT_NAME} rt) + endif() endif() target_compile_definitions(${PROJECT_NAME}