I need to run swig as part of my cmake build system. I want the user to be able to specify a list of languages to pass to swig and specify them on the command line.
$ cmake -DSWIG_LANGUAGES=java,scala <path to cmake_source_dir> Is there a built-in-way for cmake to handle this?
-DSWIG_LANGUAGES=java;scala;haskellyou can for example iterate over the list with a for loop.