From 45c34b8d375a63d4c4ddf037cf5ef5986ce9438e Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 22 Oct 2024 17:26:50 +0100 Subject: [PATCH] do not hard-code wfmash executable 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1572c9a..42965998 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)