From 4bac143465dbc73b1848b9aeab9f059e50eb3178 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 21 Mar 2019 12:57:35 +0300 Subject: [PATCH] Integration of [CEA 13233] support new xdr.h location - Attempt 4: clear XDR_LIBRARIES variable when there's no xdr library --- cmake/FindXDR.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmake/FindXDR.cmake b/cmake/FindXDR.cmake index 2a0ba1e..be0d6ac 100644 --- a/cmake/FindXDR.cmake +++ b/cmake/FindXDR.cmake @@ -38,13 +38,12 @@ IF(WIN32) 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) - -- 2.39.2