]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
[PY3] Needs OmniORBpy includes for LifeCycleCorba_SWIG
authorNicolas Geimer <nicolas.geimer@edf.fr>
Wed, 15 Mar 2017 14:36:55 +0000 (15:36 +0100)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Wed, 15 Mar 2017 14:36:55 +0000 (15:36 +0100)
cmake/FindOmniORBPy.cmake
cmake/FindSalomeOmniORBPy.cmake

index b1c4e6dccdc8f6580a71397c4c16101726e152b5..7ef278015b90b6143e417fa889c09f2a75e67639 100644 (file)
@@ -39,10 +39,17 @@ FIND_PATH(OMNIORB_PYTHON_BACKEND
   PATH_SUFFIXES "/lib/python${_py_version}/site-packages/omniidl_be" "/lib/omniidl/omniidl_be" "/lib/python/omniidl_be"
   DOC "Path to python-backend directory (omniidl_be) including python.py file")
 
+FIND_PATH(OMNIORBPY_INCLUDE_DIR
+  NAMES omniORBpy.h
+  PATHS "${OMNIORBPY_ROOT_DIR}" "/usr"
+  PATHS_SUFFIXES "/include"
+  DOC "Path to omniORBpy include directory")
+
 ##############################################################################
 # Cook our stuff
 ##############################################################################
 MARK_AS_ADVANCED(OMNIORB_PYTHON_BACKEND)
+MARK_AS_ADVANCED(OMNIORBPY_INCLUDE_DIR)
   
 SET(OMNIORB_IDLPYFLAGS)
 IF (OMNIORB_PYTHON_BACKEND) 
@@ -54,4 +61,4 @@ GET_FILENAME_COMPONENT(OMNIORBPY_PYTHONPATH "${OMNIORB_PYTHON_BACKEND}" PATH)
 
 # Handle standard arguments:
 INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(OmniORBPy REQUIRED_VARS OMNIORB_PYTHON_BACKEND)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(OmniORBPy REQUIRED_VARS OMNIORB_PYTHON_BACKEND OMNIORBPY_INCLUDE_DIR)
index 881d10b2c64ab6da34676ff52d6ab0274e7dec79..93197ae8f6f5379f0176bce817867507e67c85ce 100644 (file)
@@ -50,6 +50,7 @@ ELSE()
 ENDIF()
 
 IF(OMNIORBPY_FOUND)
+  SALOME_ACCUMULATE_HEADERS(${OMNIORBPY_INCLUDE_DIR})
   SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OMNIORBPY_LIBRARIES})
   SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${OMNIORBPY_LIBRARIES}
                                            ${OMNIORBPY_PYTHONPATH})