Make the eclipse-project target more robust to CMake errors, #3738

This commit is contained in:
Brian Gerkey 2011-11-08 21:40:44 +00:00
parent f51bfafa67
commit e31d2b9080
1 changed files with 1 additions and 4 deletions

View File

@ -40,10 +40,7 @@ gcoverage: all
eclipse-project:
mv Makefile Makefile.ros
cmake -G"Eclipse CDT4 - Unix Makefiles" -Wno-dev .
rm Makefile
rm CMakeCache.txt
rm -rf CMakeFiles
if ! (cmake -G"Eclipse CDT4 - Unix Makefiles" -Wno-dev . && rm Makefile && rm CMakeCache.txt && rm -rf CMakeFiles); then mv Makefile.ros Makefile && echo "**ERROR building Eclipse project!**" && false; fi
mv Makefile.ros Makefile
mv .project .project-cmake
awk -f $(shell rospack find mk)/eclipse.awk .project-cmake > .project