From: vsr Date: Sat, 15 Oct 2011 13:45:35 +0000 (+0000) Subject: Add -I${CMAKE_BINARY_DIR} to default CXX flags (all modules) - equivalent of -I$... X-Git-Tag: Before_0020136~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3bdb13566475490f86cd7fb21611eebfc728b45;p=modules%2Fkernel.git Add -I${CMAKE_BINARY_DIR} to default CXX flags (all modules) - equivalent of -I$(top_builddir) for automake --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index b818a73a8..2a10d1a26 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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'''