From 4af55e64e924deb0ecc5412b341da5215706bee7 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 13 Jan 2020 17:09:24 +0300 Subject: [PATCH] cmake: support OPENCV_ABI_SKIP_MODULES_LIST backporting of commit f163778da7132304ad9f1bf3f3743660042ba406 --- cmake/OpenCVGenABI.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/OpenCVGenABI.cmake b/cmake/OpenCVGenABI.cmake index 4aaa16a..57905a2 100644 --- a/cmake/OpenCVGenABI.cmake +++ b/cmake/OpenCVGenABI.cmake @@ -2,6 +2,8 @@ if (NOT GENERATE_ABI_DESCRIPTOR) return() endif() +set(OPENCV_ABI_SKIP_MODULES_LIST "" CACHE STRING "List of modules to exclude from ABI checker") + set(filename "opencv_abi.xml") set(path1 "${CMAKE_BINARY_DIR}/${filename}") @@ -28,6 +30,7 @@ foreach(mod ${OPENCV_MODULES_BUILD}) string(REGEX REPLACE "^opencv_" "" mod "${mod}") if(NOT OPENCV_MODULE_opencv_${mod}_CLASS STREQUAL "PUBLIC" OR NOT "${OPENCV_MODULE_opencv_${mod}_LOCATION}" STREQUAL "${OpenCV_SOURCE_DIR}/modules/${mod}" # opencv_contrib + OR ";${mod};" MATCHES ";${OPENCV_ABI_SKIP_MODULES_LIST};" ) # headers foreach(h ${OPENCV_MODULE_opencv_${mod}_HEADERS}) -- 2.7.4