From e492a8ad995f38f9ef8ca3d50c68e33eed84677e Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Fri, 20 Dec 2024 11:00:04 +0100 Subject: [PATCH] [EDF31321]: Add bootsrap in dependence --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eba3036..7d76a5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,17 @@ ENDIF() SALOME_SETUP_VERSION(9.13.0) MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"") +# Find SalomeBootstrap +# =========== +SET(SALOMEBOOTSTRAP_ROOT_DIR $ENV{SALOMEBOOTSTRAP_ROOT_DIR} CACHE PATH "Path to the Salome Bootstrap") +IF(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + FIND_PACKAGE(SalomeBootstrap REQUIRED) + ADD_DEFINITIONS(${SALOMEBOOTSTRAP_DEFINITIONS}) + INCLUDE_DIRECTORIES(${SALOMEBOOTSTRAP_INCLUDE_DIRS}) +ELSE(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need a Salome Bootstrap, please define SALOMEBOOTSTRAP_ROOT_DIR") +ENDIF(EXISTS ${SALOMEBOOTSTRAP_ROOT_DIR}) + # Find KERNEL # =========== SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL") -- 2.39.2