From 74f77accfc028ffad42f974e413ce72fdbb2b699 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Mon, 29 Oct 2018 13:15:45 +0800 Subject: [PATCH] fix xxhash compile on macos test=develop --- cmake/external/xxhash.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/external/xxhash.cmake b/cmake/external/xxhash.cmake index 4deaab7545c..c227e09719b 100644 --- a/cmake/external/xxhash.cmake +++ b/cmake/external/xxhash.cmake @@ -7,7 +7,11 @@ set(XXHASH_INCLUDE_DIR "${XXHASH_INSTALL_DIR}/include") IF(WITH_STATIC_LIB) SET(BUILD_CMD make lib) ELSE() - SET(BUILD_CMD sed -i "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib) + IF(APPLE) + SET(BUILD_CMD sed -i \"\" "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib) + ELSE(APPLE) + SET(BUILD_CMD sed -i "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib) + ENDIF(APPLE) ENDIF() ExternalProject_Add( -- GitLab