- Attempt 4: clear XDR_LIBRARIES variable when there's no xdr library
ENDIF()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XDR REQUIRED_VARS XDR_INCLUDE_DIRS XDR_LIBRARIES)
ELSE(WIN32)
- FIND_LIBRARY(XDR_LIBRARIES NAMES tirpc xdr)
- IF(NOT XDR_LIBRARIES)
+ FIND_LIBRARY(XDR_LIBRARY NAMES tirpc xdr)
+ IF(NOT XDR_LIBRARY)
MESSAGE(STATUS "Could not find XDR libraries ...")
- SET(XDR_LIBRARIES) # reset variable tough, as they are not mandatory on some platforms
ELSE()
- MESSAGE(STATUS "Found XDR libraries ${XDR_LIBRARIES} ...")
+ MESSAGE(STATUS "Found XDR libraries ${XDR_LIBRARY} ...")
+ SET(XDR_LIBRARIES ${XDR_LIBRARY})
ENDIF()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XDR REQUIRED_VARS XDR_INCLUDE_DIRS)
ENDIF(WIN32)
-