diff --git a/CMakeLists.txt b/CMakeLists.txt index 895f97b8c3..416afc227a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -585,7 +585,6 @@ if(LZO_FOUND) else() message(STATUS "Using static lzo from Externals") add_subdirectory(Externals/LZO) - include_directories(Externals/LZO) set(LZO lzo2) endif() diff --git a/Externals/LZO/CMakeLists.txt b/Externals/LZO/CMakeLists.txt index 78f58eff2a..48d1af1b1e 100644 --- a/Externals/LZO/CMakeLists.txt +++ b/Externals/LZO/CMakeLists.txt @@ -1 +1,8 @@ -add_library(lzo2 STATIC minilzo.c) +add_library(lzo2 STATIC + minilzo.c +) + +target_include_directories(lzo2 +PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR} +)