find readline properly on freebsd

This commit is contained in:
nick black 2021-06-26 22:20:16 -03:00
parent 23b19581e8
commit 5d92bcb69b

View File

@ -70,7 +70,8 @@ endif()
# global compiler flags
add_compile_definitions(FORTIFY_SOURCE=2)
add_compile_options(-Wall -Wextra -W -Wshadow -Wformat -Wno-nonnull-compare
-Wformat-security -fexceptions -fstrict-aliasing)
-Wformat-security -fexceptions -fstrict-aliasing
-Wno-string-plus-int)
message(STATUS "Requested multimedia engine: ${USE_MULTIMEDIA}")
message(STATUS "Requested build mode: ${CMAKE_BUILD_TYPE}")
@ -257,14 +258,22 @@ target_link_libraries(notcurses-static
notcurses-core-static
)
if(${USE_READLINE})
target_link_libraries(notcurses
target_link_libraries(notcurses-core
PUBLIC
"${READLINE_LIBRARIES}"
)
target_link_libraries(notcurses-static
target_link_directories(notcurses-core
PUBLIC
"${READLINE_LIBRARY_DIRS}"
)
target_link_libraries(notcurses-core-static
PUBLIC
"${READLINE_LIBRARIES}"
)
target_link_directories(notcurses-core-static
PUBLIC
"${READLINE_LIBRARY_DIRS}"
)
endif()
if(${USE_FFMPEG})
target_include_directories(notcurses