From f2bbb6b303d1fe96495f5862f22efb6a4cdd22b6 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 24 Aug 2022 13:35:20 +0200 Subject: Move include_directories() to proper places We should scope these as narrowely as possible to avoid side effects. --- common/rdr/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/rdr') diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt index 46b36cd5..08c93d8b 100644 --- a/common/rdr/CMakeLists.txt +++ b/common/rdr/CMakeLists.txt @@ -1,4 +1,5 @@ -include_directories(${CMAKE_SOURCE_DIR}/common ${ZLIB_INCLUDE_DIRS}) +include_directories(${CMAKE_SOURCE_DIR}/common) +include_directories(${ZLIB_INCLUDE_DIRS}) add_library(rdr STATIC BufferedInStream.cxx @@ -19,6 +20,7 @@ add_library(rdr STATIC target_link_libraries(rdr ${ZLIB_LIBRARIES} os) if(GNUTLS_FOUND) + include_directories(${GNUTLS_INCLUDE_DIR}) target_link_libraries(rdr ${GNUTLS_LIBRARIES}) endif() if(WIN32) -- cgit v1.2.3