cgal_create_cmake_script now displays created targets on stderr

This commit is contained in:
Laurent Rineau 2013-08-30 13:34:44 +02:00
parent 35a5766766
commit 73ad12ef1f
1 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,7 @@ EOF
echo " include_directories (BEFORE \"${SOURCE_DIR}include\")"
echo
fi
echo "Adding a target ${target_name}..." >&3
cat <<EOF
add_executable (${target_name} ${all})
@ -153,6 +154,7 @@ EOF
egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo " create_single_source_cgal_program( \"$file\" )"
echo "Adding a target ${BASE}..." >&3
fi
done
@ -236,5 +238,5 @@ if [ -f ${OUTPUTFILE} ] ; then
echo "moving $OUTPUTFILE to ${OUTPUTFILE}.bak ..."
mv -f $OUTPUTFILE ${OUTPUTFILE}.bak
fi
create_cmake_script > $OUTPUTFILE
create_cmake_script 3>&2 > $OUTPUTFILE
echo "created $OUTPUTFILE in $PWD ..."