Skip to content

Commit 5dd6283

Browse files
authored
Merge pull request #14128 from jacquesqiao/cherry-pick-fix-xxhash-1
Merge pull request #14107 from jacquesqiao/fix-xxhash-compile-on-mac
2 parents 043f450 + b71967a commit 5dd6283

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/external/xxhash.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ set(XXHASH_INCLUDE_DIR "${XXHASH_INSTALL_DIR}/include")
77
IF(WITH_STATIC_LIB)
88
SET(BUILD_CMD make lib)
99
ELSE()
10-
SET(BUILD_CMD sed -i "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib)
10+
IF(APPLE)
11+
SET(BUILD_CMD sed -i \"\" "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib)
12+
ELSE(APPLE)
13+
SET(BUILD_CMD sed -i "s/-Wstrict-prototypes -Wundef/-Wstrict-prototypes -Wundef -fPIC/g" ${XXHASH_SOURCE_DIR}/src/extern_xxhash/Makefile && make lib)
14+
ENDIF(APPLE)
1115
ENDIF()
1216
1317
ExternalProject_Add(

0 commit comments

Comments
 (0)