ClickHouse/base/glibc-compatibility/memcpy/CMakeLists.txt

9 lines
296 B
CMake
Raw Normal View History

2021-03-13 19:39:10 +00:00
if (ARCH_AMD64)
add_library(memcpy STATIC memcpy.cpp)
2021-03-02 19:09:37 +00:00
2021-03-13 19:39:10 +00:00
# We allow to include memcpy.h from user code for better inlining.
target_include_directories(memcpy PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
2021-03-08 10:05:18 +00:00
2021-03-13 19:39:10 +00:00
target_compile_options(memcpy PRIVATE -fno-builtin-memcpy)
endif ()