mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build: use upstream CMakeLists.txt for unibilium (#21976)
Also remove UnibiliumCMakeLists.txt as it's not necessary anymore.
This commit is contained in:
parent
bcbdb94185
commit
993dc6e97e
@ -6,9 +6,6 @@ ExternalProject_Add(unibilium
|
||||
URL_HASH SHA256=${UNIBILIUM_SHA256}
|
||||
DOWNLOAD_NO_PROGRESS TRUE
|
||||
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/unibilium
|
||||
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake/UnibiliumCMakeLists.txt
|
||||
${DEPS_BUILD_DIR}/src/unibilium/CMakeLists.txt
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_GENERATOR=${CMAKE_GENERATOR}
|
||||
-DCMAKE_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM}
|
||||
|
@ -1,29 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(unibilium LANGUAGES C)
|
||||
|
||||
file(GLOB SRC_FILES ${PROJECT_SOURCE_DIR}/*.c)
|
||||
add_library(unibilium ${SRC_FILES})
|
||||
set_target_properties(unibilium PROPERTIES PUBLIC_HEADER ${PROJECT_SOURCE_DIR}/unibilium.h
|
||||
VERSION "${VERSION_MAJOR}.${VERSION_MINOR}")
|
||||
|
||||
if(NOT WIN32)
|
||||
execute_process(COMMAND sh -c "ncursesw6-config --terminfo-dirs 2>/dev/null || \
|
||||
ncurses6-config --terminfo-dirs 2>/dev/null || \
|
||||
ncursesw5-config --terminfo-dirs 2>/dev/null || \
|
||||
ncurses5-config --terminfo-dirs 2>/dev/null || \
|
||||
echo '/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo'"
|
||||
OUTPUT_VARIABLE TERMINFO_DIRS)
|
||||
# Remove trailing newline
|
||||
string(STRIP "${TERMINFO_DIRS}" TERMINFO_DIRS)
|
||||
else()
|
||||
set(TERMINFO_DIRS "")
|
||||
endif()
|
||||
target_compile_definitions(unibilium PUBLIC "TERMINFO_DIRS=\"${TERMINFO_DIRS}\"")
|
||||
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS unibilium
|
||||
PUBLIC_HEADER
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
||||
# vim: set ft=cmake:
|
Loading…
Reference in New Issue
Block a user