Browse Source

Check that we are using libjpeg-turbo and not the standard one and complain

to the user if not.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4321 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.1.90
Pierre Ossman 13 years ago
parent
commit
6fa0749aa7
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      CMakeLists.txt

+ 7
- 0
CMakeLists.txt View File

@@ -98,6 +98,13 @@ endif()
# 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)

Loading…
Cancel
Save