From a6fbc1c9e3bad8a21f714253ab0bd52d0d6291d4 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Fri, 1 Jan 2021 03:04:10 -0300 Subject: [PATCH] zstd: define include_directories for build interface only --- externals/CMakeLists.txt | 1 + src/common/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index bfad32b40a..24e881b19d 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -81,6 +81,7 @@ add_subdirectory(teakra EXCLUDE_FROM_ALL) # Zstandard add_subdirectory(zstd/build/cmake EXCLUDE_FROM_ALL) +target_include_directories(libzstd_static INTERFACE $) # ENet add_subdirectory(enet) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index a765c20197..5d65965fa5 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -131,7 +131,6 @@ create_target_directory_groups(common) target_link_libraries(common PUBLIC fmt microprofile Boost::boost Boost::serialization) target_link_libraries(common PRIVATE libzstd_static) -target_include_directories(common PRIVATE ${CMAKE_SOURCE_DIR}/externals/zstd/lib) if (ARCHITECTURE_x86_64) target_link_libraries(common PRIVATE xbyak) endif()