sapling/CMake/FindLZ4.cmake
Adam Simpkins ab9a840d9e minor cleanup to FindLZ4.cmake
Summary:
Don't print a status message about finding LZ4 twice: one is already printed
by `find_package_handle_standard_args()`.

Also change a few function calls to lower-case to be more consistent with the
rest of our CMake files.

Reviewed By: chadaustin

Differential Revision: D16435455

fbshipit-source-id: bc2c66399823162f93e62d1d0dbdba422fe63b24
2019-07-23 18:38:29 -07:00

21 lines
544 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
find_library(LZ4_LIBRARY_DEBUG NAMES lz4d)
find_library(LZ4_LIBRARY_RELEASE NAMES lz4)
include(SelectLibraryConfigurations)
select_library_configurations(LZ4)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
LZ4 DEFAULT_MSG
LZ4_LIBRARY LZ4_INCLUDE_DIR
)
mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY)