From d97b4001b3f8c12ef8d3d271c74871588fd33cc0 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 2 Dec 2016 11:06:06 +0100 Subject: [PATCH] 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). --- Scripts/developer_scripts/create_cgal_test | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/developer_scripts/create_cgal_test b/Scripts/developer_scripts/create_cgal_test index 8b063dfc53b..b65d4b9c3fc 100755 --- a/Scripts/developer_scripts/create_cgal_test +++ b/Scripts/developer_scripts/create_cgal_test @@ -82,6 +82,7 @@ configure() if eval 'cmake "\$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \\ -DCGAL_DIR="\$CGAL_DIR" \\ + --no-warn-unused-cli \\ .' ; then echo " successful configuration" >> \$ERRORFILE