Rename library for vcpkg. (#140)

Instead of putting the archive as:
- <lib_dir>/ftxui/libcomponent.a
- <lib_dir>/ftxui/libdom.a
- <lib_dir>/ftxui/libscreen.a

Use:
- <lib_dir>/libftxui-component.a
- <lib_dir>/libftxui-dom.a
- <lib_dir>/libftxui-screen.a

This fixes an issue users have with VCPKG.

See:
https://github.com/microsoft/vcpkg/issues/16327#issuecomment-868942370
This commit is contained in:
Arthur Sonzogni 2021-07-06 02:10:35 +02:00 committed by GitHub
parent 81b428af5a
commit 82adc3b410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
include(GNUInstallDirs) include(GNUInstallDirs)
install(TARGETS screen dom component install(TARGETS screen dom component
EXPORT ftxui-export EXPORT ftxui-export
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/ftxui/ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/ftxui/ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
install(DIRECTORY include/ftxui DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(DIRECTORY include/ftxui DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

View File

@ -1,4 +1,7 @@
function(ftxui_set_options library) function(ftxui_set_options library)
set_target_properties(${library} PROPERTIES PREFIX "ftxui-")
target_include_directories(${library} target_include_directories(${library}
PUBLIC PUBLIC
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>