This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to tag v1.0.0 in repository osmium-tool.
commit 110e504ba1a3ef6839028979d5652dc7fb98780f Author: Jochen Topf <joc...@topf.org> Date: Tue Jul 22 11:28:45 2014 +0200 Add 'format' target to cmake makefile. --- CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 860e4b4..ceec6d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,6 +126,24 @@ endif(PANDOC) #---------------------------------------------------------------------- # +# Optional "format" target that formats C++ code +# +#---------------------------------------------------------------------- +message(STATUS "Looking for astyle") +find_program(ASTYLE astyle) + +if(ASTYLE) + add_custom_target(format astyle --style=java --indent-namespaces --indent-switches --pad-header --lineend=linux --suffix=none --recursive src/*pp) + message(STATUS "Looking for astyle - found") + message(STATUS " Adding 'indent' target") +else() + message(STATUS "Looking for astyle - not found") + message(STATUS " No 'indent' target available") +endif(ASTYLE) + + +#---------------------------------------------------------------------- +# # Create src/config.hpp # #---------------------------------------------------------------------- -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel