From fdc3afe78539f31848dde1891c70e8c82a3ca41e Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Mon, 9 Mar 2026 13:59:37 +0100 Subject: [PATCH] fix(snippet): cmake path --- test/snippet/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/snippet/CMakeLists.txt b/test/snippet/CMakeLists.txt index ceede721..051e53bd 100644 --- a/test/snippet/CMakeLists.txt +++ b/test/snippet/CMakeLists.txt @@ -36,7 +36,7 @@ macro (sharg_snippet test_name_prefix snippet snippet_base_path) add_test (NAME "${snippet_compare_test_target}" COMMAND ${CMAKE_COMMAND} -DTARGET_FILE=$ -DSOURCE_FILE=${snippet_base_path}/${snippet} -P - "${CMAKE_SOURCE_DIR}/compare_snippet_output.cmake") + "${CMAKE_CURRENT_SOURCE_DIR}/compare_snippet_output.cmake") # disable version checker, as it interferes with comparing the snippet output set_tests_properties ("${snippet_compare_test_target}" PROPERTIES ENVIRONMENT SHARG_NO_VERSION_CHECK=0)