From fdd59216f6cc67f249cf3fb9430fb1e90afb7374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 19 Sep 2023 19:25:27 +0200 Subject: [PATCH] fix: proper linking against readline --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f8402b..0a29e0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.25) project(dynamic_program CXX) set(CMAKE_CXX_STANDARD 20) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -lreadline") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") include_directories( @@ -19,5 +19,6 @@ add_executable(endgame-analyzer src/main.cpp src/cli_interface.cpp src/download. target_link_libraries(endgame-analyzer cpr) target_link_libraries(endgame-analyzer Boost::program_options) +target_link_libraries(endgame-analyzer readline) #set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")