add OPTIONAL flag to avaid error when OTRGui is not build (#2299)

This commit is contained in:
th-2021 2023-01-19 10:47:21 +01:00 committed by GitHub
parent d9662ab63b
commit d6dbaacb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
.
)
INSTALL(TARGETS OTRGui DESTINATION . COMPONENT ship)
INSTALL(TARGETS OTRGui DESTINATION . COMPONENT ship OPTIONAL)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/assets
DESTINATION .
COMPONENT ship