From 8c802a12fb055d7bc11d90836b0ced5283ee32ce Mon Sep 17 00:00:00 2001 From: Yoann AUDOUIN Date: Thu, 4 May 2017 09:55:08 +0200 Subject: [PATCH] Modification for new interface of openturns + cleanup --- adm_local/cmake_files/FindTelemac.cmake | 26 +++++++++++-------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/adm_local/cmake_files/FindTelemac.cmake b/adm_local/cmake_files/FindTelemac.cmake index b9a32d2..6e7ee81 100644 --- a/adm_local/cmake_files/FindTelemac.cmake +++ b/adm_local/cmake_files/FindTelemac.cmake @@ -16,35 +16,31 @@ # along with SALOME HYDRO module. If not, see . FIND_LIBRARY(TELEMAC_LIBRARY_api api - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_bief bief - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_damocles damocles - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_parallel parallel - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_sisyphe sisyphe - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_special special - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_telemac2d telemac2d - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_tomawac tomawac - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) # FIND_LIBRARY(TELEMAC_LIBRARY_gretel gretel -# PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib) +# PATHS ${TELEMAC_ROOT_DIR}/${USETELCFG}/wrap_api/lib) # FIND_LIBRARY(TELEMAC_LIBRARY_partel partel -# PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib) +# PATHS ${TELEMAC_ROOT_DIR}/${USETELCFG}/wrap_api/lib) FIND_LIBRARY(TELEMAC_LIBRARY_hermes hermes - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib) + PATHS ${TELEMAC_ROOT_DIR}/builds/${USETELCFG}/wrap_api/lib) IF(NOT EXISTS ${TELEMAC_LIBRARY_hermes}) MESSAGE("Warning: ${TELEMAC_LIBRARY_hermes} does not exist") SET(TELEMAC_LIBRARY_hermes "") ENDIF() -FIND_PATH(TELEMAC_INCLUDE_DIR interface_telemac2d.mod - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/include) -FIND_PATH(TELEMAC_API_SRC_DIR api_interface.f90 - PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/src) # The order of the libraries is important for the API wrapper compilation SET(TELEMAC_LIBRARIES ${TELEMAC_LIBRARY_api} -- 2.39.2