Merge pull request #6602 from lioncash/xxhash

CMakeLists: Don't dump xxhash's includes into top-level directory scope
This commit is contained in:
Léo Lam 2018-04-07 23:31:13 +02:00 committed by GitHub
commit bb38b612ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -566,7 +566,6 @@ endif()
if(NOT XXHASH_FOUND)
message(STATUS "Using static xxhash from Externals")
add_subdirectory(Externals/xxhash)
include_directories(Externals/xxhash)
endif()
find_package(ZLIB)

View File

@ -1,7 +1,7 @@
project(xxhash C)
set(SRCS
xxhash.c
add_library(xxhash STATIC xxhash.c)
target_include_directories(xxhash
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
add_library(xxhash STATIC ${SRCS})