]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
Changin some of the checks with cmake
authorYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Fri, 12 May 2017 12:02:11 +0000 (14:02 +0200)
committerYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Fri, 12 May 2017 12:02:11 +0000 (14:02 +0200)
adm_local/cmake_files/FindSalomeTelemac.cmake
adm_local/cmake_files/FindTelemac.cmake

index 732e617d1992a954ee7e40270d635bd1b93c9ca5..809064ed5ef724a36ab725d0c1876c6dc99c8c32 100644 (file)
@@ -28,11 +28,12 @@ MARK_AS_ADVANCED(TELEMAC_LIBRARY_api
                  TELEMAC_LIBRARY_special
                  TELEMAC_LIBRARY_telemac2d
                  TELEMAC_LIBRARY_tomawac
-                 TELEMAC_LIBRARIES
+                 TELEMAC_LIBRARY_hermes
+                 TELEMAC_LIBRARY_partel
+                 TELEMAC_LIBRARY_gretel
                  TELEMAC_INCLUDE_DIR
                  TELEMAC_API_SRC_DIR)
 
 IF(Telemac_FOUND OR TELEMAC_FOUND)
   SALOME_ACCUMULATE_HEADERS(TELEMAC_INCLUDE_DIR)
-  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${TELEMAC_LIBRARIES})
 ENDIF()
index 130116410e99cc652679b7d505318eae7a58d61f..91e62dfd36efa08be93ad572e3971670005feffa 100644 (file)
@@ -16,7 +16,7 @@
 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
 
 FIND_LIBRARY(TELEMAC_LIBRARY_api api
-  PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
+             PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_bief bief
              PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_damocles damocles
@@ -31,30 +31,12 @@ FIND_LIBRARY(TELEMAC_LIBRARY_telemac2d telemac2d
              PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_tomawac tomawac
              PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
-FIND_LIBRARY(TELEMAC_LIBRARY_gretel gretel
-             PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
-FIND_LIBRARY(TELEMAC_LIBRARY_partel partel
-             PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
+FIND_LIBRARY(TELEMAC_LIBRARY_gretel gretel
+             PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
+FIND_LIBRARY(TELEMAC_LIBRARY_partel partel
+             PATHS ${TELEMAC_ROOT_DIR}/salome/wrap_api/lib)
 FIND_LIBRARY(TELEMAC_LIBRARY_hermes hermes
              PATHS ${TELEMAC_ROOT_DIR}/builds/salome/wrap_api/lib)
-IF(NOT EXISTS ${TELEMAC_LIBRARY_hermes})
-  MESSAGE("Warning: ${TELEMAC_LIBRARY_hermes} does not exist")
-  SET(TELEMAC_LIBRARY_hermes "")
-ENDIF()
-
-# The order of the libraries is important for the API wrapper compilation
-SET(TELEMAC_LIBRARIES ${TELEMAC_LIBRARY_api}
-                      ${TELEMAC_LIBRARY_gretel}
-                      ${TELEMAC_LIBRARY_partel}
-                      ${TELEMAC_LIBRARY_telemac2d}
-                      ${TELEMAC_LIBRARY_sisyphe}
-                      ${TELEMAC_LIBRARY_tomawac}
-                      ${TELEMAC_LIBRARY_bief}
-                      ${TELEMAC_LIBRARY_hermes}
-                      ${TELEMAC_LIBRARY_parallel}
-                      ${TELEMAC_LIBRARY_damocles}
-                      ${TELEMAC_LIBRARY_special}
-   )
 
 # Handle the standard arguments of the find_package() command:
 INCLUDE(FindPackageHandleStandardArgs)
@@ -66,8 +48,8 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Telemac REQUIRED_VARS TELEMAC_LIBRARY_api
                                                         TELEMAC_LIBRARY_special
                                                         TELEMAC_LIBRARY_telemac2d
                                                         TELEMAC_LIBRARY_tomawac
-                                                        TELEMAC_LIBRARY_gretel
-                                                        TELEMAC_LIBRARY_partel
-                                                        #TELEMAC_LIBRARY_hermes  # Optional
+                                                        TELEMAC_LIBRARY_gretel
+                                                        TELEMAC_LIBRARY_partel
+                                                        TELEMAC_LIBRARY_hermes
                                                         TELEMAC_INCLUDE_DIR
                                                         TELEMAC_API_SRC_DIR)