]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add -I${CMAKE_BINARY_DIR} to default CXX flags (all modules) - equivalent of -I$...
authorvsr <vsr@opencascade.com>
Sat, 15 Oct 2011 13:45:35 +0000 (13:45 +0000)
committervsr <vsr@opencascade.com>
Sat, 15 Oct 2011 13:45:35 +0000 (13:45 +0000)
salome_adm/cmake_files/am2cmake.py

index b818a73a8fc44faebddd43febdd506b32484bd4b..2a10d1a26a92f90be4841cfbb98ad44c4e741d94 100644 (file)
@@ -779,8 +779,8 @@ class CMakeFile(object):
         SET(VERSION_INFO 0.0.0)
         SET(SOVERSION_INFO 0)
         SET(SUBDIRS)
-        SET(AM_CPPFLAGS)
-        SET(AM_CXXFLAGS)
+        SET(AM_CPPFLAGS -I${CMAKE_BINARY_DIR )
+        SET(AM_CXXFLAGS -I${CMAKE_BINARY_DIR})
         SET(LDADD)
         SET(pythondir lib/python${PYTHON_VERSION}/site-packages)
         SET(salomepythondir ${pythondir}/salome)
@@ -788,7 +788,7 @@ class CMakeFile(object):
         """)
         if self.module == "netgen":
             newlines.append(r'''
-            SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DNO_PARALLEL_THREADS -DOCCGEOMETRY -I${CMAKE_BINARY_DIR} -I${CMAKE_CURRENT_SOURCE_DIR})
+            SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DNO_PARALLEL_THREADS -DOCCGEOMETRY -I${CMAKE_CURRENT_SOURCE_DIR})
             ''')
         elif self.module == "kernel":
             newlines.append(r'''