CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_METIS "Enable metis graph library in MEDPartitioner." ON "MEDCOUPLING_ENABLE_PARTITIONER" OFF)
CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_SCOTCH "Enable scotch graph library in MEDPartitioner." ON "MEDCOUPLING_ENABLE_PARTITIONER;NOT MEDCOUPLING_USE_MPI" OFF)
CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_PARMETIS "Enable parmetis graph library in MEDPartitioner." ON "MEDCOUPLING_ENABLE_PARTITIONER;MEDCOUPLING_USE_MPI" OFF)
-IF(WIN32)
- CMAKE_DEPENDENT_OPTION(MEDCOUPLING_MEDLOADER_USE_XDR "Enable use of XDR for SauvReader." ON "NOT MEDCOUPLING_MICROMED" OFF)
-ENDIF(WIN32)
+CMAKE_DEPENDENT_OPTION(MEDCOUPLING_MEDLOADER_USE_XDR "Enable use of XDR for SauvReader." ON "NOT MEDCOUPLING_MICROMED" OFF)
IF(MEDCOUPLING_BUILD_STATIC)
SET(BUILD_SHARED_LIBS 0)
FIND_PACKAGE(SalomeHDF5 REQUIRED)
FIND_PACKAGE(SalomeMEDFile REQUIRED)
# XDR stuff
- IF(NOT WIN32)
- FIND_PACKAGE(SalomeXDR REQUIRED)
- ELSE(NOT WIN32)
- IF(MEDCOUPLING_MEDLOADER_USE_XDR)
+ IF(MEDCOUPLING_MEDLOADER_USE_XDR)
FIND_PACKAGE(SalomeXDR REQUIRED)
- ENDIF(MEDCOUPLING_MEDLOADER_USE_XDR)
- ENDIF(NOT WIN32)
+ ENDIF(MEDCOUPLING_MEDLOADER_USE_XDR)
# End of XDR Stuff
IF(MEDCOUPLING_ENABLE_PARTITIONER)
FIND_PACKAGE(SalomeLibXml2)
MESSAGE(STATUS "Check for XDR ...")
FIND_PATH(XDR_INCLUDE_DIRS rpc/xdr.h)
-SET(XDR_DEFINITIONS "-DHAS_XDR")
+IF(XDR_INCLUDE_DIRS)
+ SET(XDR_DEFINITIONS "-DHAS_XDR")
+ENDIF()
IF(WIN32)
FIND_LIBRARY(XDR_LIBRARIES xdr) # To get the .lib file from XDR