From f1d749e3cd3aaa5ec875ea29ca010b73d3174f2c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Apr 2021 00:26:56 +0300 Subject: cmake: slight CMakeLists.txt refactoring --- server/lexer/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/lexer/CMakeLists.txt') diff --git a/server/lexer/CMakeLists.txt b/server/lexer/CMakeLists.txt index 68914d9..1f053a6 100644 --- a/server/lexer/CMakeLists.txt +++ b/server/lexer/CMakeLists.txt @@ -1,8 +1,7 @@ +find_package(Boost REQUIRED COMPONENTS regex) + file(GLOB_RECURSE lexer_src "*.cpp" "*.hpp") add_library(lexer ${lexer_src}) target_include_directories(lexer PUBLIC ..) - target_link_libraries(lexer PUBLIC common) - -find_package(Boost REQUIRED COMPONENTS regex) target_link_libraries(lexer PRIVATE Boost::disable_autolinking Boost::regex) -- cgit v1.2.3