From daab31fa0c67533ec3ec57d4f7322279f1b54edf Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 6 Dec 2012 08:56:31 +0000 Subject: [PATCH] create tests target only when not yet existing --- core/rosbuild/public.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/rosbuild/public.cmake b/core/rosbuild/public.cmake index caaee28e..a3765f5e 100644 --- a/core/rosbuild/public.cmake +++ b/core/rosbuild/public.cmake @@ -309,7 +309,9 @@ macro(rosbuild_init) endif(_test_results_dir_failed) # The 'tests' target builds the test program - add_custom_target(tests) + if(NOT TARGET tests) + add_custom_target(tests) + endif() # The 'test' target runs all but the future tests add_custom_target(test) # We need to build tests before running them. Addition of this