Skip to content

Commit d7065b3

Browse files
committed
Update CMakeLists.txt
1 parent 22ddb39 commit d7065b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ foreach(EXAMPLE IN LISTS EXAMPLES)
2424
add_executable(${EXAMPLE} EXCLUDE_FROM_ALL "${EXAMPLE}.cpp")
2525
target_link_libraries(${EXAMPLE} PRIVATE Traits::traits)
2626

27-
add_test(NAME ${EXAMPLE} COMMAND ${EXAMPLE})
27+
add_test(NAME ${EXAMPLE} COMMAND $<TARGET_FILE:${EXAMPLE}>)
2828
add_dependencies(examples ${EXAMPLE})
2929
endforeach()

0 commit comments

Comments
 (0)