From 6cce85b3a34a4a27d678abf0b4c005a38afd1738 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 18:38:17 +0300 Subject: cmake: no more target_include_directories hacks --- server/parser/CMakeLists.txt | 2 +- server/parser/error.hpp | 2 +- server/parser/operator.hpp | 5 +++-- server/parser/parser.hpp | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) (limited to 'server/parser') diff --git a/server/parser/CMakeLists.txt b/server/parser/CMakeLists.txt index 20d39a1..a426c6a 100644 --- a/server/parser/CMakeLists.txt +++ b/server/parser/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(parser INTERFACE) -target_include_directories(parser INTERFACE .) +target_include_directories(parser INTERFACE ..) target_link_libraries(parser INTERFACE common lexer) diff --git a/server/parser/error.hpp b/server/parser/error.hpp index 6862a8f..6aea015 100644 --- a/server/parser/error.hpp +++ b/server/parser/error.hpp @@ -5,7 +5,7 @@ #pragma once -#include "../common/error.hpp" +#include #include diff --git a/server/parser/operator.hpp b/server/parser/operator.hpp index 9030c65..b29ae92 100644 --- a/server/parser/operator.hpp +++ b/server/parser/operator.hpp @@ -5,10 +5,11 @@ #pragma once -#include "../lexer/token.hpp" -#include "../lexer/token_type.hpp" #include "error.hpp" +#include +#include + #include namespace math::server::parser { diff --git a/server/parser/parser.hpp b/server/parser/parser.hpp index 844b36e..d9ec80d 100644 --- a/server/parser/parser.hpp +++ b/server/parser/parser.hpp @@ -5,10 +5,11 @@ #pragma once -#include "../lexer/lexer.hpp" #include "error.hpp" #include "operator.hpp" +#include + #include #include -- cgit v1.2.3