From 2af1a9c192e4f94bfcc1442a0d6b803cfca57df5 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 29 Aug 2018 14:24:06 +0300 Subject: [PATCH] SALOME 9.1.0 Windows version --- src/HEXABLOCK/HexAssoEdge.cxx | 2 ++ src/HEXABLOCK/HexDocument.hxx | 2 ++ src/HEXABLOCK/HexQpattern.cxx | 1 + src/HEXABLOCK/HexVertex.cxx | 2 ++ src/HEXABLOCK/hexa_utils.cxx | 1 + src/HEXABLOCK_SWIG/CMakeLists.txt | 11 ++++++++--- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/HEXABLOCK/HexAssoEdge.cxx b/src/HEXABLOCK/HexAssoEdge.cxx index 345b6ad..8f55ce2 100755 --- a/src/HEXABLOCK/HexAssoEdge.cxx +++ b/src/HEXABLOCK/HexAssoEdge.cxx @@ -28,6 +28,8 @@ #include +#include + BEGIN_NAMESPACE_HEXA // static bool db = on_debug (); diff --git a/src/HEXABLOCK/HexDocument.hxx b/src/HEXABLOCK/HexDocument.hxx index 23822cb..afd9e06 100755 --- a/src/HEXABLOCK/HexDocument.hxx +++ b/src/HEXABLOCK/HexDocument.hxx @@ -26,6 +26,8 @@ #include "Hex_defines.hxx" #include "HexEltBase.hxx" +#include + #ifdef WIN32 #ifdef max #undef max diff --git a/src/HEXABLOCK/HexQpattern.cxx b/src/HEXABLOCK/HexQpattern.cxx index e839ce9..1f71475 100644 --- a/src/HEXABLOCK/HexQpattern.cxx +++ b/src/HEXABLOCK/HexQpattern.cxx @@ -31,6 +31,7 @@ #include "HexGlobale.hxx" #include +#include #include BEGIN_NAMESPACE_HEXA diff --git a/src/HEXABLOCK/HexVertex.cxx b/src/HEXABLOCK/HexVertex.cxx index 793bbca..2a6c778 100755 --- a/src/HEXABLOCK/HexVertex.cxx +++ b/src/HEXABLOCK/HexVertex.cxx @@ -30,6 +30,8 @@ #include "HexVertexShape.hxx" #include "HexKas_functions.hxx" +#include + BEGIN_NAMESPACE_HEXA static bool db = on_debug (); // == getenv ("HEXA_DB") > 0 diff --git a/src/HEXABLOCK/hexa_utils.cxx b/src/HEXABLOCK/hexa_utils.cxx index 88d8746..5fdffda 100755 --- a/src/HEXABLOCK/hexa_utils.cxx +++ b/src/HEXABLOCK/hexa_utils.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include BEGIN_NAMESPACE_HEXA diff --git a/src/HEXABLOCK_SWIG/CMakeLists.txt b/src/HEXABLOCK_SWIG/CMakeLists.txt index 7de0e2c..543d283 100644 --- a/src/HEXABLOCK_SWIG/CMakeLists.txt +++ b/src/HEXABLOCK_SWIG/CMakeLists.txt @@ -74,9 +74,14 @@ SET(_bin_SCRIPTS ADD_LIBRARY(hexablock_swig_lib ${_hexablock_swig_SOURCES}) TARGET_LINK_LIBRARIES(hexablock_swig_lib ${_link_LIBRARIES} ) -add_library(_hexablock_swig MODULE ${_hexablock_swig_SOURCES}) -target_link_libraries(_hexablock_swig ${_link_LIBRARIES} ${hexablock_swig_lib}) # does nothing but reproduces previous SWIG_LINK_LIBRARIES line -set_target_properties(_hexablock_swig PROPERTIES PREFIX "") +IF(${CMAKE_VERSION} VERSION_LESS "3.8.0") + SWIG_ADD_MODULE(hexablock_swig python hexablock_swig.i) +ELSE() + SWIG_ADD_LIBRARY(hexablock_swig LANGUAGE python SOURCES hexablock_swig.i) +ENDIF() + + +SWIG_LINK_LIBRARIES(hexablock_swig ${_link_LIBRARIES} ${hexablock_swig_lib}) INSTALL(TARGETS _hexablock_swig DESTINATION ${SALOME_INSTALL_LIBS}) SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON}) -- 2.39.2