cmake: fix incompatibility with cmake 3.5
remove list(FILTER ..) because it is not availbale on cmake version < 3.6
@@ -38,21 +38,25 @@ set (
elektra-tests
elektra-dbg)
-set (ALL_PLUGINS ${CPACK_COMPONENTS_ALL})
-list (FILTER ALL_PLUGINS INCLUDE REGEX "^libelektra4-.*")
+set (COMPONENTS_WITHOUT_DBGSYM elektra-doc elektra-dbg libelektra-dev libelektra4-all elektra-bin-extra)
+
+set (ALL_PLUGINS "")
+foreach(component ${CPACK_COMPONENTS_ALL})
+ if (component MATCHES "^libelektra4-.*")
+ list (APPEND ALL_PLUGINS "${component}")
+ endif()
+endforeach()
string (REPLACE ";" ", " ALL_PLUGINS_STR "${ALL_PLUGINS}")
+message(STATUS "ALL_PLUGINS_STR: ${ALL_PLUGINS_STR}")
set (DBG_PACKAGE_NAMES "")
foreach (component ${CPACK_COMPONENTS_ALL})
+ if (NOT component IN_LIST COMPONENTS_WITHOUT_DBGSYM)
list (APPEND DBG_PACKAGE_NAMES "${component}-dbgsym")
+ endif ()
endforeach ()
-# exclude all packages without dbgsym
-list (FILTER DBG_PACKAGE_NAMES EXCLUDE REGEX "^elektra-doc.*")
-list (FILTER DBG_PACKAGE_NAMES EXCLUDE REGEX "^elektra-dbg.*")
-list (FILTER DBG_PACKAGE_NAMES EXCLUDE REGEX "^libelektra-dev.*")
-list (FILTER DBG_PACKAGE_NAMES EXCLUDE REGEX "^libelektra4-all.*")
-list (FILTER DBG_PACKAGE_NAMES EXCLUDE REGEX "^elektra-bin-extra.*")
string (REPLACE ";" ", " DBG_PACKAGE_NAMES_STR "${DBG_PACKAGE_NAMES}")
+message(STATUS "DBG_PACKAGE_NAMES_STR: ${DBG_PACKAGE_NAMES_STR}")
set (
PACKAGE_DESCRIPTION
