From e3a8b2fc13e113e27f3a0629b4534e590a79ad2f Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Mon, 24 Apr 2017 10:59:07 -0700 Subject: [PATCH] pom: Do not generate pom files for blacklist When generating pom files from CXX targets for JAVA, check against the JAVA blacklist file. Remove any targets in the blacklist prior to generating the pom file. Signed-off-by: Noel Eck --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fefe358a..539ca749 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -116,6 +116,9 @@ endfunction (_gen_pkg_config_per_target) # This function iterates over all provided target names and # writes a pom file to each build directory function (_gen_pom_per_target) + # Remove targets listed in the JAVA blacklist from pom file generation + list(REMOVE_ITEM ARGN ${JAVASWIG_BLACKLIST}) + list(LENGTH ARGN n_targets) message(STATUS "Generating pom files for ${n_targets} CXX libraries...") # Iterate over the targets an build pom files