mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
[V84] Fix conflict netgen / netgen contrib in GMSH
This commit is contained in:
parent
f5f73b5e03
commit
f4da288f5a
@ -77,6 +77,11 @@ OPTION(SALOME_BUILD_DOC "Generate SALOME SMESH documentation" ON)
|
||||
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
||||
OPTION(SALOME_SMESH_USE_CGNS "Enable import/export to CGNS format" OFF)
|
||||
OPTION(SALOME_SMESH_USE_TBB "Enable parallel computation" OFF)
|
||||
OPTION(SALOME_SMESH_DYNLOAD_LOCAL "Load plug-ins' symbols locally (Linux only)" OFF)
|
||||
|
||||
IF(SALOME_SMESH_DYNLOAD_LOCAL)
|
||||
ADD_DEFINITIONS(-DDYNLOAD_LOCAL)
|
||||
ENDIF(SALOME_SMESH_DYNLOAD_LOCAL)
|
||||
|
||||
#On Linux use Fortran to compile MEFISTO2D
|
||||
IF(NOT WIN32)
|
||||
@ -85,7 +90,7 @@ IF(NOT WIN32)
|
||||
ADD_DEFINITIONS(-DENABLE_MEFISTO)
|
||||
ENDIF(NOT WIN32)
|
||||
|
||||
MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_SMESH_USE_CGNS SALOME_SMESH_USE_TBB)
|
||||
MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_SMESH_USE_CGNS SALOME_SMESH_USE_TBB SALOME_SMESH_DYNLOAD_LOCAL)
|
||||
|
||||
# Prerequisites
|
||||
# =============
|
||||
|
@ -67,12 +67,16 @@
|
||||
#define LoadLib( name ) LoadLibrary( name )
|
||||
#define GetProc GetProcAddress
|
||||
#define UnLoadLib( handle ) FreeLibrary( handle );
|
||||
#else
|
||||
#else // WIN32
|
||||
#define LibHandle void*
|
||||
#ifdef DYNLOAD_LOCAL
|
||||
#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_LOCAL )
|
||||
#else // DYNLOAD_LOCAL
|
||||
#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_GLOBAL )
|
||||
#endif // DYNLOAD_LOCAL
|
||||
#define GetProc dlsym
|
||||
#define UnLoadLib( handle ) dlclose( handle );
|
||||
#endif
|
||||
#endif // WIN32
|
||||
|
||||
#ifdef _DEBUG_
|
||||
static int MYDEBUG = 0;
|
||||
|
@ -62,12 +62,16 @@
|
||||
#define LoadLib( name ) LoadLibrary( name )
|
||||
#define GetProc GetProcAddress
|
||||
#define UnLoadLib( handle ) FreeLibrary( handle );
|
||||
#else
|
||||
#else // WIN32
|
||||
#define LibHandle void*
|
||||
#ifdef DYNLOAD_LOCAL
|
||||
#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_LOCAL )
|
||||
#else // DYNLOAD_LOCAL
|
||||
#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_GLOBAL )
|
||||
#endif // DYNLOAD_LOCAL
|
||||
#define GetProc dlsym
|
||||
#define UnLoadLib( handle ) dlclose( handle );
|
||||
#endif
|
||||
#endif // WIN32
|
||||
|
||||
#include "SMESH_Gen_i.hxx"
|
||||
#include "SMESH_version.h"
|
||||
|
Loading…
Reference in New Issue
Block a user