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