From f3bdb13566475490f86cd7fb21611eebfc728b45 Mon Sep 17 00:00:00 2001 From: vsr Date: Sat, 15 Oct 2011 13:45:35 +0000 Subject: [PATCH] Add -I${CMAKE_BINARY_DIR} to default CXX flags (all modules) - equivalent of -I$(top_builddir) for automake --- salome_adm/cmake_files/am2cmake.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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''' -- 2.39.2