Skip to content

Commit 92bf5ee

Browse files
authored
Merge pull request #309 from eseiler/fix/path
fix(snippet): cmake path
2 parents 9b86884 + fdc3afe commit 92bf5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/snippet/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ macro (sharg_snippet test_name_prefix snippet snippet_base_path)
3636
add_test (NAME "${snippet_compare_test_target}"
3737
COMMAND ${CMAKE_COMMAND} -DTARGET_FILE=$<TARGET_FILE:${target}>
3838
-DSOURCE_FILE=${snippet_base_path}/${snippet} -P
39-
"${CMAKE_SOURCE_DIR}/compare_snippet_output.cmake")
39+
"${CMAKE_CURRENT_SOURCE_DIR}/compare_snippet_output.cmake")
4040

4141
# disable version checker, as it interferes with comparing the snippet output
4242
set_tests_properties ("${snippet_compare_test_target}" PROPERTIES ENVIRONMENT SHARG_NO_VERSION_CHECK=0)

0 commit comments

Comments
 (0)