fix: proper linking against readline

This commit is contained in:
Maximilian Keßler 2023-09-19 19:25:27 +02:00
parent f02870c975
commit fdd59216f6
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.25)
project(dynamic_program CXX) project(dynamic_program CXX)
set(CMAKE_CXX_STANDARD 20) 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") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
include_directories( 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 cpr)
target_link_libraries(endgame-analyzer Boost::program_options) 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") #set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")