mirror of https://github.com/CGAL/cgal
Remove `ENABLE_CTEST`: it is by default in CGAL
This commit is contained in:
parent
4a0c40b731
commit
4c8709cc60
|
|
@ -113,9 +113,6 @@ EOF
|
||||||
|
|
||||||
# CGAL and its components
|
# CGAL and its components
|
||||||
EOF
|
EOF
|
||||||
if [ -n "$ENABLE_CTEST" ]; then
|
|
||||||
echo "enable_testing()"
|
|
||||||
fi
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# echo "CGAL_COMPONENTS: $CGAL_COMPONENTS"
|
# echo "CGAL_COMPONENTS: $CGAL_COMPONENTS"
|
||||||
if [ ! -z "$CGAL_COMPONENTS" ]; then
|
if [ ! -z "$CGAL_COMPONENTS" ]; then
|
||||||
|
|
@ -347,24 +344,6 @@ EOF
|
||||||
else
|
else
|
||||||
echo "create_single_source_cgal_program( \"$file\" )"
|
echo "create_single_source_cgal_program( \"$file\" )"
|
||||||
fi
|
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
|
fi
|
||||||
#add a new line
|
#add a new line
|
||||||
echo
|
echo
|
||||||
|
|
@ -575,8 +554,6 @@ while getopts s:c:b:o:phvt OPT; do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
t) ENABLE_CTEST='y'
|
|
||||||
;;
|
|
||||||
h) usage
|
h) usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue