From 56632a36b0ecd6946aac254cea3818b00baf4652 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Wed, 23 Feb 2022 20:09:35 -0600 Subject: [PATCH] Set source path to be used by common::testing (#206) Signed-off-by: Michael Carroll --- cmake/IgnUtils.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/IgnUtils.cmake b/cmake/IgnUtils.cmake index 9d009892..414f0a5f 100644 --- a/cmake/IgnUtils.cmake +++ b/cmake/IgnUtils.cmake @@ -1718,6 +1718,9 @@ macro(ign_build_tests) target_link_libraries(${target_name} pthread) endif() + target_compile_definitions(${target_name} PRIVATE + "TESTING_PROJECT_SOURCE_DIR=\"${PROJECT_SOURCE_DIR}\"") + set_tests_properties(${target_name} PROPERTIES TIMEOUT 240) if(PYTHONINTERP_FOUND)