From 961987aadbeb56bd380c12e34a31c4015b90177f Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 8 Oct 2021 11:34:08 +0800 Subject: [PATCH] make compile --- CMakeLists.txt | 4 ++-- source/common/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95e1cad2fe..02226e23e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,8 +48,8 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -gdwarf-2 -msse4.2 -mfma") add_subdirectory(deps) # api -aux_source_directory(include/client API_SRC) -add_library(api INTERFACE ${API_SRC}) +add_library(api INTERFACE) +target_include_directories(api INTERFACE "include/client") # src add_subdirectory(source) diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt index 51d7965b06..d03231fcfb 100644 --- a/source/common/CMakeLists.txt +++ b/source/common/CMakeLists.txt @@ -9,5 +9,5 @@ target_link_libraries( common PUBLIC os PUBLIC util - PUBLIC api + INTERFACE api ) \ No newline at end of file