Skip to content

Commit

Permalink
do not hard-code wfmash executable
Browse files Browse the repository at this point in the history
cmake substitutes the correct path for executables (such as wfmash)
that were declared using add_executable. Hard-coding the path to the
executable in a specific build directory breaks the build for other
build directories.
  • Loading branch information
arunisaac authored and pjotrp committed Dec 7, 2024
1 parent 1be75b6 commit 45c34b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})

add_test(
NAME wfmash-test
COMMAND ./build/bin/wfmash data/LPA.subset.fa.gz -p 80 -n 5 -t 8
COMMAND wfmash data/LPA.subset.fa.gz -p 80 -n 5 -t 8
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

install(TARGETS wfmash DESTINATION bin)
Expand Down

0 comments on commit 45c34b8

Please sign in to comment.