Remove `ENABLE_CTEST`: it is by default in CGAL

This commit is contained in:
Laurent Rineau 2019-05-07 11:16:21 +02:00
parent 4a0c40b731
commit 4c8709cc60
1 changed files with 0 additions and 23 deletions

View File

@ -113,9 +113,6 @@ EOF
# CGAL and its components
EOF
if [ -n "$ENABLE_CTEST" ]; then
echo "enable_testing()"
fi
#---------------------------------------------------------------------------
# echo "CGAL_COMPONENTS: $CGAL_COMPONENTS"
if [ ! -z "$CGAL_COMPONENTS" ]; then
@ -347,24 +344,6 @@ EOF
else
echo "create_single_source_cgal_program( \"$file\" )"
fi
if [ -n "$ENABLE_CTEST" ]; then
if [ -f "$BASE.cin" ] ; then
CIN=" < $BASE.cin"
else
CIN=
fi
cat <<EOF
add_test( "$BASE" \${CMAKE_CTEST_COMMAND}
--build-and-test "\${CMAKE_CURRENT_SOURCE_DIR}"
"\${CMAKE_CURRENT_BINARY_DIR}"
--build-generator "\${CMAKE_GENERATOR}"
--build-makeprogram "\${CMAKE_MAKE_PROGRAM}"
--build-target $BASE
--build-no-clean
--build-run-dir "\${CMAKE_CURRENT_SOURCE_DIR}"
--test-command sh -c "\${CMAKE_CURRENT_BINARY_DIR}/$BASE$CIN" )
EOF
fi
fi
#add a new line
echo
@ -575,8 +554,6 @@ while getopts s:c:b:o:phvt OPT; do
exit 1
fi
;;
t) ENABLE_CTEST='y'
;;
h) usage
exit 0
;;