]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Update according new version of
authoradam <adam>
Tue, 8 Sep 2009 08:41:04 +0000 (08:41 +0000)
committeradam <adam>
Tue, 8 Sep 2009 08:41:04 +0000 (08:41 +0000)
make_common_starter.am in which is defined
AM_CXXFLAGS = -I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h
AM_CPPFLAGS = -I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h

salome_adm/cmake_files/am2cmake.py

index 0224588a42149eb239bb53c5ef6f1fc867875c20..692434ad1da43ebc31f05f6335ff26cc4880a44a 100644 (file)
@@ -612,6 +612,10 @@ class CMakeFile(object):
         SET(AM_CXXFLAGS)
         SET(LDADD)
         """)
+        newlines.append(r'''
+        SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${CMAKE_BINARY_DIR}/salome_adm/unix -include SALOMEconfig.h)
+        SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${CMAKE_BINARY_DIR}/salome_adm/unix -include SALOMEconfig.h)
+        ''')
         # --
         return
     
@@ -1197,12 +1201,10 @@ class CMakeFile(object):
             SET(var ${var} -I${CMAKE_CURRENT_BINARY_DIR})
             ''')
             pass
-        if key == "bin_PROGRAMS":
-            newlines.append(r'''
-            SET(var ${var} ${AM_CPPFLAGS})
-            SET(var ${var} ${AM_CXXFLAGS})
-            ''')
-            pass
+        newlines.append(r'''
+        SET(var ${var} ${AM_CPPFLAGS})
+        SET(var ${var} ${AM_CXXFLAGS})
+        ''')
         newlines.append(r'''
        SET(var ${var} ${PLATFORM_CPPFLAGS})
        SET(var ${var} ${PTHREAD_CFLAGS})