From: vsr Date: Tue, 29 Oct 2013 07:31:44 +0000 (+0000) Subject: Workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories X-Git-Tag: V7_3_0a1~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bd4251de9a96046c24a92c0d332db4181a4ca9e;p=modules%2Fsmesh.git Workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories --- diff --git a/src/SMESH_SWIG_WITHIHM/CMakeLists.txt b/src/SMESH_SWIG_WITHIHM/CMakeLists.txt index ded39676f..0a3e36414 100644 --- a/src/SMESH_SWIG_WITHIHM/CMakeLists.txt +++ b/src/SMESH_SWIG_WITHIHM/CMakeLists.txt @@ -74,6 +74,11 @@ SET(SMESH_Swig_SOURCES ${SMESH_Swig_HEADERS} ) +# workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories +GET_DIRECTORY_PROPERTY(_cmake_include_directories INCLUDE_DIRECTORIES) +LIST(REMOVE_DUPLICATES _cmake_include_directories) +SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${_cmake_include_directories}") + # swig flags SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")