Skip to content

Commit 4489f45

Browse files
committed
Merge pull request #66 from domoticz/fix_osx_build
No Posix real time extensions library -lrt on OSX
2 parents 559861f + 5da9b95 commit 4489f45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,11 @@ else()
440440
message(STATUS "Not found telldus-core (telldus-core.h), not adding tellstick support")
441441
endif (TELLDUSCORE_INCLUDE)
442442

443-
target_link_libraries(domoticz -lrt ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread lua mqtt sqlite ${CMAKE_DL_LIBS})
443+
IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
444+
target_link_libraries(domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread lua mqtt sqlite ${CMAKE_DL_LIBS})
445+
else()
446+
target_link_libraries(domoticz -lrt ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} pthread lua mqtt sqlite ${CMAKE_DL_LIBS})
447+
ENDIF()
444448

445449
ADD_PRECOMPILED_HEADER(domoticz "main/stdafx.h")
446450

0 commit comments

Comments
 (0)