Ticket #34587: patch-cmake-configure.cmake.diff

File patch-cmake-configure.cmake.diff, 558 bytes (added by lhunath@…, 12 years ago)
  • configure.cmake

    diff --git a/cmake/configure.cmake b/cmake/configure.cmake
    index c3cc787..6193481 100644
    a b IF(UNIX) 
    149149  SET(CMAKE_REQUIRED_LIBRARIES
    150150    ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT})
    151151
    152   LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES)
     152  IF(CMAKE_REQUIRED_LIBRARIES)
     153    LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES)
     154  ENDIF()
    153155  LINK_LIBRARIES(${CMAKE_THREAD_LIBS_INIT})
    154156
    155157  OPTION(WITH_LIBWRAP "Compile with tcp wrappers support" OFF)