Salome HOME
projects
/
tools
/
configuration.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1596169
)
Integration of [CEA 13233] support new xdr.h location
author
rnv
<rnv@opencascade.com>
Tue, 19 Mar 2019 08:17:11 +0000
(11:17 +0300)
committer
rnv
<rnv@opencascade.com>
Tue, 19 Mar 2019 08:17:11 +0000
(11:17 +0300)
cmake/FindXDR.cmake
patch
|
blob
|
history
diff --git
a/cmake/FindXDR.cmake
b/cmake/FindXDR.cmake
index bf3563dda2f5a35b5096250c4346ef29a4246482..1febef1deb492a283754cd2678b19fde13534c02 100644
(file)
--- a/
cmake/FindXDR.cmake
+++ b/
cmake/FindXDR.cmake
@@
-21,8
+21,16
@@
MESSAGE(STATUS "Check for XDR ...")
FIND_PATH(XDR_INCLUDE_DIRS rpc/xdr.h)
IF(XDR_INCLUDE_DIRS)
FIND_PATH(XDR_INCLUDE_DIRS rpc/xdr.h)
IF(XDR_INCLUDE_DIRS)
- SET(XDR_DEFINITIONS "-DHAS_XDR")
-ENDIF()
+ SET(XDR_DEFINITIONS "-DHAS_XDR")
+ELSE(XDR_INCLUDE_DIRS)
+ IF(EXISTS "/usr/include/tirpc/rpc/xdr.h")
+ MESSAGE(STATUS "XDR was found in /usr/include/tirpc ...")
+ include_directories(/usr/include/tirpc)
+ SET(XDR_DEFINITIONS "-DHAS_XDR")
+ SET(XDR_INCLUDE_DIRS "/usr/include/tirpc")
+ FIND_LIBRARY(XDR_LIBRARIES tirpc)
+ ENDIF()
+ENDIF(XDR_INCLUDE_DIRS)
IF(WIN32)
FIND_LIBRARY(XDR_LIBRARIES xdr) # To get the .lib file from XDR
IF(WIN32)
FIND_LIBRARY(XDR_LIBRARIES xdr) # To get the .lib file from XDR