From a58a33c23c771fb767b082470e45d2b2e23b0794 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 6 Feb 2008 10:05:39 +0000 Subject: [PATCH] fix package dep --- kernel/cmake/BBTKConfigurePackage.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/cmake/BBTKConfigurePackage.cmake b/kernel/cmake/BBTKConfigurePackage.cmake index f73f42e..7b53b54 100644 --- a/kernel/cmake/BBTKConfigurePackage.cmake +++ b/kernel/cmake/BBTKConfigurePackage.cmake @@ -28,6 +28,7 @@ STRING(REGEX MATCH "${${BBTK_PACKAGE_NAME}_DEPS}" "${BBTK_PACKAGES_DEPS}") ENDIF(UNIX) #----------------------------------------------------------------------------- +#SET(BBTK_PACKAGES_DEPS "" CACHE INTERNAL "bbtk packages dependencies" FORCE) #----------------------------------------------------------------------------- # IF THE USER HAS CHOSEN TO BUILD THE PACKAGE @@ -39,6 +40,7 @@ IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) IF(NOT ${BBTK_PACKAGE_NAME}_IN_DEPS) SET(BBTK_PACKAGES_DEPS "${${BBTK_PACKAGE_NAME}_DEPS};${BBTK_PACKAGES_DEPS}" CACHE INTERNAL "bbtk packages dependencies" FORCE) +MESSAGE(STATUS "deps=${BBTK_PACKAGES_DEPS}") ENDIF(NOT ${BBTK_PACKAGE_NAME}_IN_DEPS) #--------------------------------------------------------------------------- @@ -136,7 +138,13 @@ ELSE(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) CACHE INTERNAL "bbtk packages dependencies" FORCE) ENDIF(${BBTK_PACKAGE_NAME}_IN_DEPS) #----------------------------------------------------------------------- - + + #----------------------------------------------------------------------- + # Remove the package include scripts to avoid loading it by include * + FILE(REMOVE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbs) + FILE(REMOVE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}-appli.bbs) + #----------------------------------------------------------------------- + #--------------------------------------------------------------------------- ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}) -- 2.47.1