You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -534,39 +534,6 @@ IF(OpenZWave)
  4. target_link_libraries(domoticz ${OpenZWave})
  5. include_directories(${CMAKE_SOURCE_DIR}/hardware/openzwave)
  6. add_definitions(-DWITH_OPENZWAVE)
  7. - # open-zwave needs libudev
  8. - IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
  9. - set(IOKIT_LIBRARY "-framework IOKit -framework CoreFoundation" CACHE FILEPATH "IOKit framework" FORCE)
  10. - target_link_libraries(domoticz ${IOKIT_LIBRARY})
  11. - else()
  12. - IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
  13. - MESSAGE(STATUS "Building on FreeBSD, libudev not needed!")
  14. - FIND_PATH(ICONV_INCLUDE_DIR iconv.h)
  15. - FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
  16. - IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
  17. - SET(ICONV_FOUND TRUE)
  18. - #target_link_libraries(domoticz ${ICONV_INCLUDE_DIR})
  19. - target_link_libraries(domoticz ${ICONV_LIBRARIES} -lrt)
  20. - message(STATUS ${ICONV_LIBRARIES})
  21. - else()
  22. - MESSAGE(FATAL_ERROR "libiconv not found on your system")
  23. - ENDIF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
  24. - else()
  25. - find_library(UDEV NAMES libudev.a)
  26. - IF(UDEV)
  27. - message(STATUS ${UDEV})
  28. - target_link_libraries(domoticz ${UDEV} -lrt)
  29. - else()
  30. - find_library(UDEV NAMES libudev.so)
  31. - IF(UDEV)
  32. - message(STATUS ${UDEV})
  33. - target_link_libraries(domoticz ${UDEV} -lrt)
  34. - else()
  35. - MESSAGE(FATAL_ERROR "LIB UDEV not found on your system, see install.txt how to get them installed.\nsudo apt-get install libudev-dev")
  36. - ENDIF(UDEV)
  37. - ENDIF(UDEV)
  38. - ENDIF()
  39. - ENDIF()
  40. else()
  41. MESSAGE(STATUS "==== OpenZWave not found, support disabled!")
  42. ENDIF(OpenZWave)