From fffc4ca05b916f9faa32bef655b7adc8f3da8b5b Mon Sep 17 00:00:00 2001 From: barate Date: Fri, 1 Mar 2013 09:52:10 +0000 Subject: [PATCH] Adapt CMake procedure to libbatch 2.0 --- salome_adm/cmake_files/FindSalomeLIBBATCH.cmake | 11 +++-------- src/Launcher/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake b/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake index d84f2ca9f..b8ca0c071 100644 --- a/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake +++ b/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake @@ -5,14 +5,9 @@ include(FindPackageHandleStandardArgs) set(LIBBATCH_ROOT_DIR $ENV{LIBBATCH_ROOT_DIR} CACHE PATH "Path to libbatch directory") if(EXISTS ${LIBBATCH_ROOT_DIR}) - find_package(libBatch QUIET CONFIG PATHS ${LIBBATCH_ROOT_DIR}/lib NO_DEFAULT_PATH) + find_package(libbatch QUIET CONFIG PATHS ${LIBBATCH_ROOT_DIR}/lib NO_DEFAULT_PATH) endif(EXISTS ${LIBBATCH_ROOT_DIR}) -find_package(libBatch QUIET CONFIG) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(libBatch DEFAULT_MSG +find_package(libbatch QUIET CONFIG) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(libbatch DEFAULT_MSG LIBBATCH_ROOT_DIR LIBBATCH_INCLUDE_DIRS LIBBATCH_LIBRARIES LIBBATCH_RUNTIME_LIBRARY_DIRS LIBBATCH_PYTHONPATH) - -# Artefact for compatibility with Libbatch 1.6.0, to be removed in Salome 7 -IF(LIBBATCH_FOUND) - get_filename_component(LIBBATCH_INCLUDE_DIR "${LIBBATCH_INCLUDE_DIRS}/.." ABSOLUTE) -ENDIF(LIBBATCH_FOUND) diff --git a/src/Launcher/CMakeLists.txt b/src/Launcher/CMakeLists.txt index 47bdcf83f..af3fd7e5b 100755 --- a/src/Launcher/CMakeLists.txt +++ b/src/Launcher/CMakeLists.txt @@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_DIRS} ${PTHREAD_INCLUDE_DIRS} ${MPI_CXX_INCLUDE_PATH} - ${LIBBATCH_INCLUDE_DIR} + ${LIBBATCH_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/salome_adm ${CMAKE_CURRENT_SOURCE_DIR}/../Basics ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace -- 2.39.2