]> source.dussan.org Git - tigervnc.git/commitdiff
Add all common inter-dependencies
authorPierre Ossman <ossman@cendio.se>
Fri, 24 Mar 2023 18:34:27 +0000 (19:34 +0100)
committerPierre Ossman <ossman@cendio.se>
Fri, 31 Mar 2023 08:37:35 +0000 (10:37 +0200)
This is important in case there are build flags that need to propagate
between libraries for things to build correctly.

common/network/CMakeLists.txt
common/os/CMakeLists.txt
common/rdr/CMakeLists.txt
common/rfb/CMakeLists.txt

index 2f7c7ad3230a2cf302affb9d33691b933f18834c..b4cfb3c406008d6c435ddb3db9d1a8457d59e1df 100644 (file)
@@ -8,6 +8,8 @@ if(NOT WIN32)
   target_sources(network PRIVATE UnixSocket.cxx)
 endif()
 
+target_link_libraries(network os rdr rfb)
+
 if(WIN32)
        target_link_libraries(network ws2_32)
 endif()
index e93c74b5d86c4e5c90d5eac44a48fe99afe3c87f..deaf2f968bc741aa3e1ea5eea8fa7d1b64a3919f 100644 (file)
@@ -5,6 +5,8 @@ add_library(os STATIC
   Thread.cxx
   os.cxx)
 
+target_link_libraries(os rdr)
+
 if(UNIX)
   target_link_libraries(os pthread)
 endif()
index 429d0c72a2c0aa792f9fb6a93a142ca6cab27669..05d8c1957898f9a12ff2dd5f69cfa86debaa6e05 100644 (file)
@@ -19,7 +19,7 @@ add_library(rdr STATIC
   ZlibInStream.cxx
   ZlibOutStream.cxx)
 
-target_link_libraries(rdr ${ZLIB_LIBRARIES} os)
+target_link_libraries(rdr ${ZLIB_LIBRARIES} os rfb)
 
 if(GNUTLS_FOUND)
   include_directories(SYSTEM ${GNUTLS_INCLUDE_DIR})
index 85cdc2db92320a4a75362a30e343f7fb440aa26c..f8fbf45a2b5c3eb027ce9f8872b3af90514f9519 100644 (file)
@@ -66,7 +66,7 @@ add_library(rfb STATIC
   obfuscate.cxx
   util.cxx)
 
-target_link_libraries(rfb os rdr)
+target_link_libraries(rfb os rdr network)
 target_link_libraries(rfb ${JPEG_LIBRARIES} ${PIXMAN_LIBRARIES})
 target_link_directories(rfb PUBLIC ${PIXMAN_LIBRARY_DIRS})