Skip to content

Commit

Permalink
Do not link against librt on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed May 12, 2024
1 parent c7d38a0 commit 37c693d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/indicore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 37c693d

Please sign in to comment.