Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (19 sloc) 0.585 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Base Io build system
# Written by Jeremy Tregunna <jeremy.tregunna@me.com>
#
# Find libedit

FIND_PATH(EDIT_INCLUDE_DIR histedit.h)

SET(EDIT_NAMES ${EDIT_NAMES} edit libedit)
FIND_LIBRARY(EDIT_LIBRARY NAMES ${EDIT_NAMES} PATH)

IF(EDIT_INCLUDE_DIR AND EDIT_LIBRARY)
SET(EDIT_FOUND TRUE)
ENDIF(EDIT_INCLUDE_DIR AND EDIT_LIBRARY)

IF(EDIT_FOUND)
IF(NOT EDIT_FIND_QUIETLY)
MESSAGE(STATUS "Found EDIT: ${EDIT_LIBRARY}")
ENDIF (NOT EDIT_FIND_QUIETLY)
ELSE(EDIT_FOUND)
IF(EDIT_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find EDIT")
ENDIF(EDIT_FIND_REQUIRED)
ENDIF(EDIT_FOUND)
Something went wrong with that request. Please try again.