mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
Workaround about SWIG_ADD_MODULE bug: remove duplicates in include directories
This commit is contained in:
parent
02dc428b77
commit
5bd4251de9
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user