From 1f1c5ca75887034bd48526621473c97266486653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Agostinho?= Date: Fri, 28 Sep 2018 13:21:00 +0200 Subject: [PATCH] "fix" --- cmake/pcl_pclconfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/pcl_pclconfig.cmake b/cmake/pcl_pclconfig.cmake index b0308624164..feb87aba7a1 100644 --- a/cmake/pcl_pclconfig.cmake +++ b/cmake/pcl_pclconfig.cmake @@ -18,9 +18,9 @@ foreach(_ss ${PCL_SUBSYSTEMS_MODULES}) PCL_GET_SUBSYS_STATUS(_status ${_ss}) # do not include test targets - string(REGEX REPLACE "tests_(.+)" "" _ss ${_ss}) + string(REGEX MATCH "^tests_" _is_test ${_ss}) - if(_status AND _ss) + if(_status AND NOT _is_test) set(PCLCONFIG_AVAILABLE_COMPONENTS "${PCLCONFIG_AVAILABLE_COMPONENTS} ${_ss}") set(PCLCONFIG_AVAILABLE_COMPONENTS_LIST "${PCLCONFIG_AVAILABLE_COMPONENTS_LIST}\n# - ${_ss}") GET_IN_MAP(_deps PCL_SUBSYS_DEPS ${_ss})