# Advanced:
OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OFF)
OPTION(SALOME_USE_LIBBATCH "Use LibBatch in KERNEL" OFF)
+OPTION(SALOME_USE_64BIT_IDS "Size of IDs to refer cells and nodes. 32 bits when OFF (default), 64 bits when ON." ON)
CMAKE_DEPENDENT_OPTION(SALOME_PACO_PARALLEL "Build with PACO (implies SALOME_USE_MPI)" OFF
"NOT SALOME_LIGHT_ONLY" OFF)
CMAKE_DEPENDENT_OPTION(SALOME_USE_MPI "Use MPI containers" OFF
)
SALOME_CONFIGURE_FILE(Calcium_Ports.idl.in Calcium_Ports.idl)
+SALOME_CONFIGURE_FILE(SALOME_Types_IDS.idl.in SALOME_Types_IDS.idl)
SET(SalomeIDLKernel_IDLSOURCES
SALOME_Exception.idl
SALOME_CommonTypes.idl
SALOME_ExternalServerLauncher.idl
${CMAKE_CURRENT_BINARY_DIR}/Calcium_Ports.idl
+ ${CMAKE_CURRENT_BINARY_DIR}/SALOME_Types_IDS.idl
)
IF(SALOME_USE_MPI)
--- /dev/null
+// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __SALOME_TYPES_IDS_IDL__
+#define __SALOME_TYPES_IDS_IDL__
+
+module SALOME
+{
+ #ifndef SALOME_USE_64BIT_IDS
+ typedef long smIdType;
+ #else
+ typedef long long smIdType;
+ #endif
+};
+
+#endif
BasicsGenericDestructor.hxx
Basics_Utils.hxx
Basics_DirUtils.hxx
+ smIdType.hxx
)
ADD_LIBRARY(SALOMEBasics ${SALOMEBasics_SOURCES})
--- /dev/null
+// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// SALOME Basics : general SALOME definitions and tools (C++ part - no CORBA)
+// File : smIdType.hxx
+
+#ifndef _SMIDTYPE_HXX_
+#define _SMIDTYPE_HXX_
+
+#include <cinttypes>
+
+#ifndef SALOME_USE_64BIT_IDS
+typedef std::int32_t smIdType;
+#else
+typedef std::int64_t smIdType;
+#endif
+
+#endif //_SMIDTYPE_HXX_