mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
ab9a840d9e
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
21 lines
544 B
CMake
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)
|