ClickHouse/contrib/libfarmhash/CMakeLists.txt

16 lines
358 B
CMake
Raw Permalink Normal View History

2022-01-17 19:16:12 +00:00
add_library(_farmhash
farmhash.cc
farmhash.h)
if (MSVC)
2022-01-17 19:16:12 +00:00
target_compile_definitions (_farmhash PRIVATE FARMHASH_NO_BUILTIN_EXPECT=1)
endif ()
2023-03-03 17:29:35 +00:00
if (ARCH_S390X)
add_compile_definitions(WORDS_BIGENDIAN)
endif ()
2022-01-17 19:16:12 +00:00
target_include_directories (_farmhash BEFORE PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_library(ch_contrib::farmhash ALIAS _farmhash)