From 478afa4eeaafa797553141e5c319f25ec7b2824b Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Sat, 8 Mar 2025 22:48:09 +0000 Subject: [PATCH] Configuration - Checking for FILES content #424 Added checking for file in package or toolkit. Removed not-existed files from the list --- adm/cmake/occt_macros.cmake | 2 ++ src/DE/FILES | 1 - src/ExpToCasExe/FILES | 2 +- src/TopClass/FILES | 5 ----- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/adm/cmake/occt_macros.cmake b/adm/cmake/occt_macros.cmake index 1a77a9548d..b41d2abe80 100644 --- a/adm/cmake/occt_macros.cmake +++ b/adm/cmake/occt_macros.cmake @@ -290,6 +290,8 @@ function (EXTRACT_PACKAGE_FILES RELATIVE_PATH OCCT_PACKAGE RESULT_FILES RESULT_I FIND_FOLDER_OR_FILE ("${RELATIVE_PATH}/${OCCT_PACKAGE}/${OCCT_FILE}" CUSTOM_FILE_PATH) if (CUSTOM_FILE_PATH) list (APPEND FILE_PATH_LIST "${CUSTOM_FILE_PATH}") + else() + message(WARNING "File ${OCCT_FILE} has not been found in ${CMAKE_SOURCE_DIR}/${RELATIVE_PATH}/${OCCT_PACKAGE}") endif() endforeach() diff --git a/src/DE/FILES b/src/DE/FILES index ab86f49a2e..bfdd4bff7d 100644 --- a/src/DE/FILES +++ b/src/DE/FILES @@ -8,6 +8,5 @@ DE_Provider.hxx DE_ShapeFixConfigurationNode.cxx DE_ShapeFixConfigurationNode.hxx DE_ShapeFixParameters.hxx -DE_ShapeFixParameters.cxx DE_Wrapper.cxx DE_Wrapper.hxx diff --git a/src/ExpToCasExe/FILES b/src/ExpToCasExe/FILES index 61973b5d99..2e1f351726 100644 --- a/src/ExpToCasExe/FILES +++ b/src/ExpToCasExe/FILES @@ -1,5 +1,5 @@ exptocas.lex -expltocas.yacc +exptocas.yacc lex.exptocas.cxx exptocas.tab.hxx exptocas.tab.cxx diff --git a/src/TopClass/FILES b/src/TopClass/FILES index a430b106c6..1ae7ba6dd1 100755 --- a/src/TopClass/FILES +++ b/src/TopClass/FILES @@ -1,9 +1,4 @@ -TopClass.cxx TopClass_Classifier2d.gxx TopClass_Classifier2d.lxx -TopClass_Classifier3d.gxx -TopClass_Classifier3d.lxx TopClass_FaceClassifier.gxx TopClass_FaceClassifier.lxx -TopClass_SolidExplorer.cxx -TopClass_SolidExplorer.hxx