Skip to content

Commit 8ea4665

Browse files
committed
fix README.md installation
1 parent c156d77 commit 8ea4665

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

assembler/src/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ if (NOT OPENMP_FOUND)
8686
add_compile_options(-Wno-unknown-pragmas)
8787
endif()
8888

89+
# Looking for README.md
90+
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../README.md")
91+
#installing from archive
92+
set(README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../README.md")
93+
else()
94+
#installing from the repo
95+
set(README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../README.md")
96+
endif()
97+
8998
# sub projects
9099
add_subdirectory(common)
91100
add_subdirectory(projects)
@@ -127,7 +136,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../test_dataset_plasmid"
127136
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../manual.html"
128137
DESTINATION share/spades
129138
COMPONENT runtime)
130-
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../../README.md"
139+
install(FILES "${README_MD_PATH}"
131140
DESTINATION share/spades
132141
COMPONENT runtime)
133142
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../truspades_manual.html"

0 commit comments

Comments
 (0)