Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jul 16, 2024
1 parent b024cfc commit 16f2ef3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMake/resolve_dependency_modules/hyperscan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,7 @@ set(CMAKE_CXX_STANDARD 11)
set(BUILD_EXAMPLES FALSE)
set(BUILD_AVX512 ON)
FetchContent_MakeAvailable(hyperscan)
find_path(HS_INCLUDE_PATH hs.h PATHS ${hyperscan_SOURCE_DIR})
set_target_properties(hs PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
${HS_INCLUDE_PATH})
set(CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD_BACKUP})
2 changes: 1 addition & 1 deletion velox/functions/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ add_library(
TimeUtils.cpp)

target_link_libraries(velox_functions_lib velox_functions_util velox_vector
re2::re2 Folly::folly hyperscan)
re2::re2 Folly::folly hs)

add_subdirectory(aggregates)
add_subdirectory(string)
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/lib/HyperscanFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/
#include "velox/functions/lib/HyperscanFunctions.h"
#include <errno.h>
#include <hs/hs.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include "hs.h"
#include "velox/functions/lib/string/StringImpl.h"
#include "velox/vector/FunctionVector.h"

Expand Down

0 comments on commit 16f2ef3

Please sign in to comment.