mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-02 07:53:43 +08:00
97be837ff5
This performs *most* of the pcreectomy ofb418e36f22
. It removes the tests and docs and all the large files, but it does *not* touch any of the files except for making Find_Package quiet (783a895b11
) or remove the AUTHORS and similar files as they are very small. This seems much easier, cleaner, nicer and has 90% of the effect of the old - the size now is 2.7MB instead of 2.1MB, down from 10MB. Fixes #7599
18 lines
657 B
CMake
Vendored
18 lines
657 B
CMake
Vendored
# Modified from FindReadline.cmake (PH Feb 2012)
|
|
|
|
if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
|
|
set(EDITLINE_FOUND TRUE)
|
|
else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
|
|
FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
|
|
/usr/include/editline
|
|
/usr/include/edit/readline
|
|
/usr/include/readline
|
|
)
|
|
|
|
FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
|
|
|
|
MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
|
|
endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
|