]> source.dussan.org Git - tigervnc.git/commitdiff
Look for libjpeg in a more proper manner and don't just assume it's in a
authorPierre Ossman <ossman@cendio.se>
Thu, 3 Mar 2011 09:55:21 +0000 (09:55 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 3 Mar 2011 09:55:21 +0000 (09:55 +0000)
standard path.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4314 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt
common/rfb/CMakeLists.txt

index 04c769739227e27e3f8f6177700fe103965e09c8..112aa8d26d86fa8994f645fb5a1478945bf2831f 100644 (file)
@@ -93,6 +93,9 @@ if(NOT ZLIB_FOUND)
   set(USE_INCLUDED_ZLIB 1)
 endif()
 
+# Check for libjpeg
+find_package(JPEG REQUIRED)
+
 # Check for GNUTLS library
 find_package(GnuTLS)
 if(GNUTLS_FOUND)
index ca723fe8baff4eef19a9372194720694c228f608..7679437c526938a6013dead7e0b97771e0aac96c 100644 (file)
@@ -1,4 +1,4 @@
-include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win)
+include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win ${JPEG_INCLUDE_DIR})
 
 set(RFB_SOURCES
   Blacklist.cxx
@@ -65,7 +65,7 @@ set(RFB_SOURCES
   encodings.cxx
   util.cxx)
 
-set(RFB_LIBRARIES jpeg os)
+set(RFB_LIBRARIES ${JPEG_LIBRARIES} os)
 
 if(GNUTLS_FOUND)
   set(RFB_SOURCES