Merge branch 'moving-eompi' into 'moving-eoserial'
Conflicts: CMakeLists.txt cmake/module/FindParadiseo.cmake
This commit is contained in:
commit
651e722de7
15 changed files with 32 additions and 14 deletions
|
|
@ -22,6 +22,7 @@
|
|||
# - smp
|
||||
# - peo
|
||||
# - eoserial
|
||||
# - eompi
|
||||
# You can use find_package(Paradiseo COMPONENTS ... ) to enable one or several components. If you not specifie component, all components will be load except SMP for compatibility reasons.
|
||||
#
|
||||
# Output
|
||||
|
|
@ -86,14 +87,19 @@ foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND})
|
|||
PATHS ${PARADISEO_SRC_PATHS})
|
||||
elseif(${COMP} STREQUAL "peo")
|
||||
set(PEO_FOUND true)
|
||||
find_path(EDO_INCLUDE_DIR edo
|
||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src
|
||||
find_path(EDO_INCLUDE_DIR peo
|
||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src
|
||||
PATHS ${PARADISEO_SRC_PATHS})
|
||||
elseif(${COMP} STREQUAL "edo")
|
||||
set(EDO_FOUND true)
|
||||
find_path(EDO_INCLUDE_DIR peo
|
||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src
|
||||
find_path(EDO_INCLUDE_DIR edo
|
||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src
|
||||
PATHS ${PARADISEO_SRC_PATHS})
|
||||
elseif(${COMP} STREQUAL "eompi")
|
||||
set(EOMPI_FOUND true)
|
||||
find_path(EOMPI_INCLUDE_DIR eompi
|
||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/eompi eompi/src
|
||||
PATHS ${PARADISEO_SRC_PATHS})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
|
@ -107,6 +113,10 @@ if(PEO_FOUND)
|
|||
set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${PEO_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(EOMPI_FOUND)
|
||||
set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${EOMPI_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# find the requested modules
|
||||
set(PARADISEO_FOUND true) # will be set to false if one of the required modules is not found
|
||||
|
||||
|
|
@ -133,6 +143,7 @@ set(PARADISEO_LIB_PATHS_SUFFIXES
|
|||
smp/lib
|
||||
peo/lib
|
||||
eoserial/lib
|
||||
eompi/lib
|
||||
lib
|
||||
lib32
|
||||
lib64
|
||||
|
|
@ -171,6 +182,9 @@ if(PARADISEO_FOUND)
|
|||
if(PEO_FOUND)
|
||||
message(${PEO_INCLUDE_DIR})
|
||||
endif()
|
||||
if(EOMPI_FOUND)
|
||||
message(${EOMPI_INCLUDE_DIR})
|
||||
endif()
|
||||
else()
|
||||
# include directory or library not found
|
||||
message(FATAL_ERROR "Could NOT find ParadisEO (missing : ${FIND_PARADISEO_MISSING})")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue