From 4a709239f8d027b5977b472526d152d9a48a704b Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Thu, 23 Nov 2023 20:38:55 +0800 Subject: [PATCH] Initial --- cpp/CMake/Simdjson.cmake | 38 -------------------------------------- cpp/velox/CMakeLists.txt | 7 ------- 2 files changed, 45 deletions(-) delete mode 100755 cpp/CMake/Simdjson.cmake diff --git a/cpp/CMake/Simdjson.cmake b/cpp/CMake/Simdjson.cmake deleted file mode 100755 index f78090e7eed2..000000000000 --- a/cpp/CMake/Simdjson.cmake +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -include_guard(GLOBAL) -include(FetchContent) - -set(GLUTEN_SIMDJSON_VERSION 3.1.5) -set(GLUTEN_SIMDJSON_BUILD_SHA256_CHECKSUM - 5b916be17343324426fc467a4041a30151e481700d60790acfd89716ecc37076) -set(GLUTEN_SIMDJSON_SOURCE_URL - "https://github.com/simdjson/simdjson/archive/refs/tags/v${GLUTEN_SIMDJSON_VERSION}.tar.gz" -) - -resolve_dependency_url(SIMDJSON) - -message(STATUS "Building simdjson from source") - -FetchContent_Declare( - simdjson - URL ${GLUTEN_SIMDJSON_SOURCE_URL} - URL_HASH ${GLUTEN_SIMDJSON_BUILD_SHA256_CHECKSUM}) - -FetchContent_MakeAvailable(simdjson) -target_compile_options(simdjson PUBLIC -fPIC) diff --git a/cpp/velox/CMakeLists.txt b/cpp/velox/CMakeLists.txt index 1ea9b38386a4..93bb8820ecbd 100644 --- a/cpp/velox/CMakeLists.txt +++ b/cpp/velox/CMakeLists.txt @@ -334,13 +334,6 @@ target_link_libraries(velox PUBLIC Folly::folly) find_re2() target_link_libraries(velox PUBLIC ${RE2_LIBRARY}) -include(Simdjson) -if(TARGET simdjson::simdjson AND NOT TARGET simdjson) - add_library(simdjson INTERFACE) - target_link_libraries(simdjson INTERFACE simdjson::simdjson) -endif() -target_link_libraries(velox PUBLIC simdjson) - if(ENABLE_GLUTEN_VCPKG) find_package(Thrift CONFIG) else()