From f353d629eab9c5ac28c8b64b78c41e1583cfc814 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 21 Dec 2010 23:00:48 +0000 Subject: [PATCH] Enhance the detection of compilation targets. The grep for main is not sufficient. Use the fact that, in "make help", the target names have not suffix, even on Windows. --- Scripts/developer_scripts/create_cgal_test_with_cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/developer_scripts/create_cgal_test_with_cmake b/Scripts/developer_scripts/create_cgal_test_with_cmake index 02ba927e67f..3696a550cd3 100755 --- a/Scripts/developer_scripts/create_cgal_test_with_cmake +++ b/Scripts/developer_scripts/create_cgal_test_with_cmake @@ -147,7 +147,7 @@ EOF tmp=`basename $file .C` tmp=`basename $tmp .cpp` cat < /dev/null; then +if \${MAKE_CMD} -f Makefile help | grep -E "$tmp\$" > /dev/null; then compile_and_run $tmp NEED_CLEAN=y fi