Only link librt on linux fdbmonitor/CMakeLists.txt

Co-Authored-By: atn34 <anoyes34@gmail.com>
This commit is contained in:
Markus Pilman 2019-01-28 21:44:48 -08:00 committed by GitHub
parent 8fc88306cf
commit ab37648037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
set(FDBMONITOR_SRCS ConvertUTF.h SimpleIni.h fdbmonitor.cpp)
add_executable(fdbmonitor ${FDBMONITOR_SRCS})
target_link_libraries(fdbmonitor rt)
if(UNIX AND NOT APPLE)
target_link_libraries(fdbmonitor rt)
endif()
# FIXME: This include directory is an ugly hack. We probably want to fix this
# as soon as we get rid of the old build system
target_include_directories(fdbmonitor PRIVATE ${CMAKE_BINARY_DIR}/fdbclient)