Fix CMake warnings about unused variables set on command line

`RUNNING_CGAL_AUTO_TEST` and `CGAL_DIR` are set on the command line by
our `cgal_test` scripts.

-> Add the option `--no-warn-unused-cli` to avoid warnings when the
   variables are actually not used (for example if a dependency is not
   satisfied).
This commit is contained in:
Laurent Rineau 2016-12-02 11:06:06 +01:00
parent 4c4b9a0fd8
commit d97b4001b3
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ configure()
if eval 'cmake "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \\ if eval 'cmake "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \\
-DCGAL_DIR="\$CGAL_DIR" \\ -DCGAL_DIR="\$CGAL_DIR" \\
--no-warn-unused-cli \\
.' ; then .' ; then
echo " successful configuration" >> \$ERRORFILE echo " successful configuration" >> \$ERRORFILE