From 47a4c8beca44d5c07516418c348d77aba5b554fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 29 Oct 2020 15:27:09 +0100 Subject: [PATCH] CMakeLists.txt: clean up OpenBSD support A few things might have changed. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 895f785..540c3c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,8 +54,6 @@ include_directories (${libssl_INCLUDE_DIRS}) link_directories (${libssl_LIBRARY_DIRS}) if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD") - include_directories (/usr/local/include) - link_directories (/usr/local/lib) # Need this for SIGWINCH in FreeBSD and OpenBSD respectively; # our POSIX version macros make it undefined add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1) @@ -115,7 +113,7 @@ if ((WANT_READLINE AND WANT_LIBEDIT) OR (NOT WANT_READLINE AND NOT WANT_LIBEDIT) elseif (WANT_READLINE) # OpenBSD's default readline is too old if ("${CMAKE_SYSTEM_NAME}" MATCHES "OpenBSD") - include_directories (/usr/local/include/ereadline) + include_directories (${OPENBSD_LOCALBASE}/include/ereadline) list (APPEND degesch_libraries ereadline) else () list (APPEND degesch_libraries readline)