]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Merge from V6_3_BR branch (Windows porting) 27/10/2011
authorvsr <vsr@opencascade.com>
Thu, 27 Oct 2011 15:32:38 +0000 (15:32 +0000)
committervsr <vsr@opencascade.com>
Thu, 27 Oct 2011 15:32:38 +0000 (15:32 +0000)
salome_adm/cmake_files/FindBOOST.cmake
salome_adm/cmake_files/FindHDF5.cmake
salome_adm/cmake_files/FindPLATFORM.cmake
salome_adm/cmake_files/am2cmake.py

index cbdc974f735f192b8db732f319b52b1d2653d0dc..9797079388acc4f8a2b61aa4b9baecf8a1a82556 100644 (file)
@@ -124,22 +124,25 @@ IF(BOOST_STATUS)
       SET(STATIC_LIB_NAMES)      
       FOREACH(version 1_35 1_38 1_42 1_46_1)
         SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
-        SET(STATIC_LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
+        SET(STATIC_LIB_NAMES ${STATIC_LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
       ENDFOREACH(version 1_35 1_38 1_42 1_46_1)
       FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+      SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
       IF(NOT BOOST_LIB_${name})
-        FIND_LIBRARY(BOOST_LIB_${name} NAMES ${STATIS_LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+        FIND_LIBRARY(STATIC_BOOST_LIB_${name} NAMES ${STATIC_LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+       SET(BOOST_LIB_${name}_FOUNDED ${STATIC_BOOST_LIB_${name}})
         SET(BOOST_ENABLE_DLL 0)
       ENDIF(NOT BOOST_LIB_${name})
     ELSE(WINDOWS)
       FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
+      SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
     ENDIF(WINDOWS)
-    IF(NOT BOOST_LIB_${name})
+    IF(NOT BOOST_LIB_${name}_FOUNDED)
       SET(BOOST_STATUS 0)
-    ENDIF(NOT BOOST_LIB_${name})
+    ENDIF(NOT BOOST_LIB_${name}_FOUNDED)
     STRING(TOUPPER ${name} upname)
-    SET(BOOST_LIB_${upname} ${BOOST_LIB_${name}})
-    SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}})
+    SET(BOOST_LIB_${upname} ${BOOST_LIB_${name}_FOUNDED})
+    SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}_FOUNDED})
   ENDFOREACH(name thread date_time signals filesystem system)
 ENDIF(BOOST_STATUS)
 
index 2523be15e860e1bbaaf8fa0b9e8cb1292bc0179d..c3d52e6a25d9ac8731a79d123fb5ad792a294683 100644 (file)
@@ -122,7 +122,7 @@ ENDIF(HDF5_STATUS)
 IF(HDF5_STATUS)
   IF(HDF5_ROOT_USER)
     IF(WINDOWS)
-      SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/dll)
+      SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/dll ${HDF5_ROOT_USER}/lib)
     ELSE(WINDOWS)
       SET(HDF5_LIB_PATHS ${HDF5_ROOT_USER}/lib)
     ENDIF(WINDOWS)
@@ -155,6 +155,7 @@ ENDIF(HDF5_STATUS)
 # ----
 
 IF(HDF5_STATUS)
+  SET(HDF5_CPPFLAGS ${HDF5_INCLUDES})
 ELSE(HDF5_STATUS)
   IF(HDF5_IS_MANDATORY)
     MESSAGE(FATAL_ERROR "hdf5 not found ... mandatory ... abort")
index 8f4bbbf9f8a6ef458fcc0a7c71cebeb270afa33e..bd76288820bfec19b40f8f66a4c65a4c648b4d9f 100644 (file)
@@ -103,6 +103,8 @@ ENDIF(WINDOWS)
 
 SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DSIZEOF_FORTRAN_INTEGER=4 -DSIZEOF_LONG=${CMAKE_SIZEOF_VOID_P} -DSIZEOF_INT=4)
 
+SET(COMPILATION_WITH_CMAKE ON)
+
 #  SET(PLATFORM_CPPFLAGS)
 #  #  #  SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DWNT -D_CRT_SECURE_NO_WARNINGS)
 #  #  SET(RM del)
index cf97aef3702769329d3896eb552369358f4c0280..e74e5a1e97e500e0ff8b0cf6d56381ead7e18d22 100644 (file)
@@ -688,9 +688,9 @@ class CMakeFile(object):
                 pass
             elif self.module == "medfile":
                 newlines.append("""
-                SET(MED_NUM_MAJEUR 2)
-                SET(MED_NUM_MINEUR 3)
-                SET(MED_NUM_RELEASE 5)
+                SET(MED_NUM_MAJEUR 3)
+                SET(MED_NUM_MINEUR 0)
+                SET(MED_NUM_RELEASE 3)
                 SET(LONG_OR_INT int)
                 IF(NOT WINDOWS)
                 SET(FLIBS -lgfortranbegin -lgfortran)
@@ -864,7 +864,21 @@ class CMakeFile(object):
         # If the line begins with 'include ', just comment it
         # --
         if line.find("include ") == 0:
-            newlines.append("# " + line)
+            if line.find("include $(top_srcdir)/config/automake.common") == 0:
+                for l in [
+                    "MAINTAINERCLEANFILES = Makefile.in",
+                    "AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_builddir)/include",
+                    "AM_FFLAGS=-I$(top_srcdir)/include  -I$(top_builddir)/include",
+                    "AM_FCFLAGS=-I$(top_srcdir)/include  -I$(top_builddir)/include",
+                    "AM_CPPFLAGS+=@HDF5_CPPFLAGS@",
+                    "AM_LDFLAGS=@HDF5_LDFLAGS@",
+                    ]:
+                    self.treatLine(l, newlines, opened_ifs)
+                    pass
+                pass
+            else:
+                newlines.append("# " + line)
+                pass
             return
         
         # --