diff --git a/assembler/src/projects/mph_test/CMakeLists.txt b/assembler/src/projects/mph_test/CMakeLists.txt index 0d0a3d89f6..7338861810 100644 --- a/assembler/src/projects/mph_test/CMakeLists.txt +++ b/assembler/src/projects/mph_test/CMakeLists.txt @@ -13,3 +13,7 @@ add_executable(spades-kmercount main.cpp) target_link_libraries(spades-kmercount spades_modules ${COMMON_LIBRARIES}) + +if (SPADES_STATIC_BUILD) + set_target_properties(spades-kmercount PROPERTIES LINK_SEARCH_END_STATIC 1) +endif()