]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Integration of [CEA 13233] support new xdr.h location V9_3_0b2
authorvsr <vsr@opencascade.com>
Thu, 21 Mar 2019 09:57:35 +0000 (12:57 +0300)
committervsr <vsr@opencascade.com>
Thu, 21 Mar 2019 09:57:35 +0000 (12:57 +0300)
- Attempt 4: clear XDR_LIBRARIES variable when there's no xdr library

cmake/FindXDR.cmake

index 2a0ba1e9c03ea1475ba1d8c2077627f4f891aba6..be0d6ac8455c5c49e083a08ddef5a24010e7f77a 100644 (file)
@@ -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)
-