ClickHouse/base/glibc-compatibility/memcpy/CMakeLists.txt
2021-03-13 22:39:10 +03:00

9 lines
296 B
CMake

if (ARCH_AMD64)
add_library(memcpy STATIC memcpy.cpp)
# We allow to include memcpy.h from user code for better inlining.
target_include_directories(memcpy PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_compile_options(memcpy PRIVATE -fno-builtin-memcpy)
endif ()