Skip to content

Commit 69fcc41

Browse files
authored
Don't fail for on attempt to install scm (#22)
If ldoc is missing it results in error: Directory 'doc' not found. Instead we should simply skip such cases and allow to install scm version. Closes #21
1 parent 10ac28f commit 69fcc41

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,10 @@ install(
6666
FILES ${CMAKE_CURRENT_SOURCE_DIR}/errors.lua
6767
DESTINATION ${TARANTOOL_INSTALL_LUADIR}
6868
)
69+
70+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doc)
71+
install(
72+
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
73+
DESTINATION ${TARANTOOL_INSTALL_LUADIR}/${PROJECT_NAME}
74+
)
75+
endif()

errors-scm-1.rockspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ build = {
2020
variables = {
2121
TARANTOOL_INSTALL_LUADIR = '$(LUADIR)',
2222
},
23-
copy_directories = {'doc'},
2423
}
2524

0 commit comments

Comments
 (0)