Skip to content
Snippets Groups Projects
Commit 91845f1e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

link libreadline already in readplus, not later in libfrida

parent 62183de9
No related branches found
No related tags found
No related merge requests found
# - Try to find READLINE
# Try to find READLINE
# Once done this will define
#
# READLINE_FOUND - system has READLINE
# READLINE_INCLUDE_DIR - the READLINE include directory
# READLINE_LIBRARIES - Link these to use READLINE
# READLINE_NEED_PREFIX - this is set if the functions are prefixed with BZ2_
#=============================================================================
# Copyright 2006-2009 Kitware, Inc.
# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_path(READLINE_INCLUDE_DIR readline/readline.h )
find_library(READLINE_LIBRARIES NAMES readline history READLINE )
# handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE if
# all listed variables are TRUE
find_path(READLINE_INCLUDE_DIR readline/readline.h)
find_library(READLINE_LIBRARIES NAMES readline history READLINE)
# handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(READLINE DEFAULT_MSG READLINE_LIBRARIES READLINE_INCLUDE_DIR)
IF (READLINE_FOUND)
include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(${READLINE_LIBRARIES} rl_initialize "" READLINE_NEED_PREFIX)
ENDIF (READLINE_FOUND)
find_package_handle_standard_args(READLINE DEFAULT_MSG READLINE_LIBRARIES READLINE_INCLUDE_DIR)
if(READLINE_FOUND)
include(CheckLibraryExists)
check_library_exists(${READLINE_LIBRARIES} rl_initialize "" READLINE_NEED_PREFIX)
endif(READLINE_FOUND)
message(STATUS "READLINE_INCLUDE_DIR=${READLINE_INCLUDE_DIR}")
message(STATUS "READLINE_LIBRARIES=${READLINE_LIBRARIES}")
mark_as_advanced(READLINE_INCLUDE_DIR READLINE_LIBRARIES)
\ No newline at end of file
......@@ -95,7 +95,6 @@ ${LIBKWW_LIBS}
${LIBCERF_LIBS}
${YAMLCPP_LIBRARY}
${LIBLMFIT_LIBS}
${READLINE_LIBRARIES}
)
install(TARGETS libfrida DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
# frida: readplus/CMakeLists.txt
include_directories(${Frida_SOURCE_DIR}/readplus ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${Frida_SOURCE_DIR}/readplus READLINE_INCLUDE_DIR)
set(src_files
ask.cpp
......@@ -20,7 +20,6 @@ ${src_files}
set_target_properties(libreadplus PROPERTIES OUTPUT_NAME readplus)
target_link_libraries(libreadplus
)
target_link_libraries(libreadplus ${READLINE_LIBRARIES})
install(TARGETS libreadplus DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment