From: vsr Date: Thu, 21 Mar 2019 09:57:35 +0000 (+0300) Subject: Integration of [CEA 13233] support new xdr.h location X-Git-Tag: V9_3_0b2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4bac143465dbc73b1848b9aeab9f059e50eb3178;p=tools%2Fconfiguration.git Integration of [CEA 13233] support new xdr.h location - Attempt 4: clear XDR_LIBRARIES variable when there's no xdr library --- 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) -