Revision: 4321
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4321&view=rev
Author: ossman_
Date: 2011-03-04 11:35:24 +0000 (Fri, 04 Mar 2011)
Log Message:
-----------
Check that we are using libjpeg-turbo and not the standard one and complain
to the user if not.
Modified Paths:
--------------
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2011-03-04 10:17:48 UTC (rev 4320)
+++ trunk/CMakeLists.txt 2011-03-04 11:35:24 UTC (rev 4321)
@@ -98,6 +98,13 @@
# Check for libjpeg
find_package(JPEG REQUIRED)
+# Warn if it doesn't seem to be the accelerated libjpeg that's found
+include(CheckCSourceCompiles)
+check_c_source_compiles("#include <stdio.h>\n#include <jpeglib.h>\nint
main(int c, char** v) { return JCS_EXT_RGBX; }" FOUND_JPEG_TURBO)
+if(NOT FOUND_JPEG_TURBO)
+ message(STATUS "WARNING: You are not using libjpeg-turbo. Performance will
suffer.")
+endif()
+
# Check for GNUTLS library
find_package(GnuTLS)
if(GNUTLS_FOUND)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits