Commit 19008d8a authored by saubatn's avatar saubatn
Browse files

FIXED Remove duplicates of variables containting the libraries, extensions and...

FIXED Remove duplicates of variables containting the libraries, extensions and applications list. Duplicates often occur when configuring several time the project before generating it.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1532 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 8f38e7ab
......@@ -36,6 +36,14 @@ parse_arguments(CAMITK_CEP_PACKAGING
${ARGN}
)
# Clean list of targets by removing duplicates
# Those may appear if configuring more than once (i.e. by manually clicking more than once on the CMake configure
# button before generating
list(REMOVE_DUPLICATES CAMITK_ACTION_TARGETS)
list(REMOVE_DUPLICATES CAMITK_COMPONENT_TARGETS)
list(REMOVE_DUPLICATES CAMITK_CEP_LIBRARY_TARGETS)
list(REMOVE_DUPLICATES CAMITK_APPLICATION_TARGETS)
# package named
if (CAMITK_CEP_PACKAGING_NAME)
set(PACKAGING_NAME ${CAMITK_CEP_PACKAGING_NAME})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment