From 2ca7b88d4945ffae6579e1c0a5c6f8c5e0106db2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 14 Oct 2017 13:07:05 -0700 Subject: [PATCH] Stop linking against libform in cmake build Switch to ${CURSES_LIBRARY} and ${CURSES_EXTRA_LIBRARY} instead of ${CURSES_LIBRARIES} to reduce the linked libraries in the CMake build. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4628bc78..9501887bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ ENDFUNCTION(FISH_LINK_DEPS) ADD_LIBRARY(fishlib STATIC ${FISH_SRCS}) TARGET_SOURCES(fishlib PRIVATE ${FISH_HEADERS}) TARGET_LINK_LIBRARIES(fishlib - ${CURSES_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS} + ${CURSES_LIBRARY} ${CURSES_EXTRA_LIBRARY} Threads::Threads ${CMAKE_DL_LIBS} ${PCRE2_LIB} muparser) # builtin_math.cpp needs to see muParser's built header.