mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-18 17:45:48 +00:00
* use tagged containers for pkg build * update build images * continue to build container images in pipeline, but allow failure (non-block) * limit travis macos cache * add vs2019 windows to travis * remove xcode 9 travis build * remove clang5/6 from CI and update min version of Clang required in cmake * break windows CI build into stages to reduce timeouts * update datelib * add if condition to travis builds to allow commit message to limit builds by platform
25 lines
453 B
CMake
25 lines
453 B
CMake
find_package (PkgConfig)
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_search_module (snappy_PC QUIET snappy>=1.1.7)
|
|
endif ()
|
|
|
|
if(static)
|
|
set(SNAPPY_LIB libsnappy.a)
|
|
else()
|
|
set(SNAPPY_LIB libsnappy.so)
|
|
endif()
|
|
|
|
find_library (snappy
|
|
NAMES ${SNAPPY_LIB}
|
|
HINTS
|
|
${snappy_PC_LIBDIR}
|
|
${snappy_PC_LIBRARY_DIRS}
|
|
NO_DEFAULT_PATH)
|
|
|
|
find_path (SNAPPY_INCLUDE_DIR
|
|
NAMES snappy.h
|
|
HINTS
|
|
${snappy_PC_INCLUDEDIR}
|
|
${snappy_PC_INCLUDEDIRS}
|
|
NO_DEFAULT_PATH)
|