From 6b8b96511d569575d3590aacce58980007f512e9 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 22 Aug 2018 00:00:27 -0700 Subject: [PATCH] Remove use of pkg-config: readline already depends on local install. --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fdc4d7d..4dfddf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,10 @@ cmake_minimum_required(VERSION 3.1) project(abcs) -find_package(PkgConfig REQUIRED) -pkg_check_modules(MPFR REQUIRED mpfr) set(CMAKE_CXX_STANDARD 11) add_subdirectory(external/libabacus) add_executable(abcs src/main.cpp src/ref.cpp src/abacus.cpp src/types.cpp src/string_functions.cpp src/util.cpp src/operator_functions.cpp src/trig_functions.cpp src/other_functions.cpp) -target_link_libraries(abcs abacus ${MPFR_LIBRARIES} readline) -target_include_directories(abcs PUBLIC include ${MPFR_INCLUDE_DIRS}) -target_compile_options(abcs PUBLIC ${MPFR_CFLAGS_OTHER}) +target_link_libraries(abcs abacus mpfr readline) +target_include_directories(abcs PUBLIC include) +target_compile_options(abcs PUBLIC)