diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-08-24 13:35:20 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-08-25 12:33:56 +0200 |
commit | f2bbb6b303d1fe96495f5862f22efb6a4cdd22b6 (patch) | |
tree | 75432ba139acc55f7b451f8225c9ffcfdf9d1c9c /common/rfb | |
parent | 79329c0a8fc6889ec2f70db5992db74f5f92c573 (diff) | |
download | tigervnc-f2bbb6b303d1fe96495f5862f22efb6a4cdd22b6.tar.gz tigervnc-f2bbb6b303d1fe96495f5862f22efb6a4cdd22b6.zip |
Move include_directories() to proper places
We should scope these as narrowely as possible to avoid side effects.
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt index 994f1196..06966410 100644 --- a/common/rfb/CMakeLists.txt +++ b/common/rfb/CMakeLists.txt @@ -1,4 +1,6 @@ -include_directories(${CMAKE_SOURCE_DIR}/common ${JPEG_INCLUDE_DIR} ${PIXMAN_INCLUDE_DIRS} ${H264_INCLUDE_DIRS}) +include_directories(${CMAKE_SOURCE_DIR}/common) +include_directories(${JPEG_INCLUDE_DIR}) +include_directories(${PIXMAN_INCLUDE_DIRS}) add_library(rfb STATIC Blacklist.cxx @@ -75,6 +77,7 @@ if(ENABLE_H264 AND NOT H264_LIBS STREQUAL "NONE") elseif(H264_LIBS STREQUAL "WIN") target_sources(rfb PRIVATE H264WinDecoderContext.cxx) endif() + include_directories(${H264_INCLUDE_DIRS}) target_link_libraries(rfb ${H264_LIBRARIES}) target_link_directories(rfb PUBLIC ${H264_LIBRARY_DIRS}) endif() @@ -95,6 +98,7 @@ endif() if(GNUTLS_FOUND) target_sources(rfb PRIVATE CSecurityTLS.cxx SSecurityTLS.cxx) + include_directories(${GNUTLS_INCLUDE_DIR}) target_link_libraries(rfb ${GNUTLS_LIBRARIES}) endif() |