diff options
author | Joerg Mayer <jmayer@loplof.de> | 2018-04-13 17:41:20 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-04-15 05:34:08 +0000 |
commit | 0d31ec328f2c523cfc4655f1674a5f0eae80923f (patch) | |
tree | 5e4f3bd287c01af8baeb65dc4d1286a9d126db8a /cmake | |
parent | 08c234445855bdc038912b943499511fd97e0d91 (diff) |
Check for HAVE_LZ4FRAME_H in the LZ4 detection process and use it
Change-Id: I919621b8c4c809eb181d563251eeb099b767ad82
Reviewed-on: https://code.wireshark.org/review/26940
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindLZ4.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/modules/FindLZ4.cmake b/cmake/modules/FindLZ4.cmake index 13ae378ddb..0b4c8d02ab 100644 --- a/cmake/modules/FindLZ4.cmake +++ b/cmake/modules/FindLZ4.cmake @@ -36,8 +36,17 @@ include(FindPackageHandleStandardArgs) find_package_handle_standard_args( LZ4 DEFAULT_MSG LZ4_INCLUDE_DIR LZ4_LIBRARY ) if( LZ4_FOUND ) + include( CheckIncludeFile ) + include( CMakePushCheckState ) + set( LZ4_INCLUDE_DIRS ${LZ4_INCLUDE_DIR} ) set( LZ4_LIBRARIES ${LZ4_LIBRARY} ) + + cmake_push_check_state() + set( CMAKE_REQUIRED_INCLUDES ${LZ4_INCLUDE_DIRS} ) + check_include_file( lz4frame.h HAVE_LZ4FRAME_H ) + cmake_pop_check_state() + if (WIN32) set ( LZ4_DLL_DIR "${LZ4_HINTS}/bin" CACHE PATH "Path to LZ4 DLL" |