Skip to content

Commit

Permalink
fix bug in ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhzzz0821 committed Dec 13, 2024
1 parent 36f862a commit 216f170
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions cpp/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ install(TARGETS tsfile LIBRARY DESTINATION ${LIBTSFILE_SDK_DIR})
set(SNAPPY_LIB_NAME "snappy")
set(LZ4_LIB_NAME "LZ4")
set(LZO_LIB_NAME "lzokay")
set(ZLIB_LIB_NAME "z")
target_link_libraries(parser_obj antlr4_shared)
target_link_libraries(compress_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} zlibstatic antlr4_shared )
target_link_libraries(common_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} zlibstatic antlr4_shared )
target_link_libraries(read_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} zlibstatic antlr4_shared )
target_link_libraries(write_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} zlibstatic antlr4_shared )
target_link_libraries(compress_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} ${ZLIB_LIB_NAME} antlr4_shared )
target_link_libraries(common_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} ${ZLIB_LIB_NAME} antlr4_shared )
target_link_libraries(read_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} ${ZLIB_LIB_NAME} antlr4_shared )
target_link_libraries(write_obj ${SNAPPY_LIB_NAME} ${LZ4_LIB_NAME} ${LZO_LIB_NAME} ${ZLIB_LIB_NAME} antlr4_shared )
# set(CMAKE_PREFIX_PATH ../../third-party/lz4-dev/lib)
# set(LZ4_LIB_DIR ../../third-party/lz4-dev/lib)
# find_library(my_lz4_lib NAMES lz4 PATHS ${LZ4_LIB_DIR} NO_DEFAULT_PATH REQUIRED)
Expand Down
1 change: 0 additions & 1 deletion cpp/third_party/antlr4-cpp-runtime-4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- mode:cmake -*-
cmake_minimum_required (VERSION 3.10)
# 2.8 needed because of ExternalProject

# Detect build type, fallback to release and throw a warning if use didn't specify any
if(NOT CMAKE_BUILD_TYPE)
message(WARNING "Build type not set, falling back to Release mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace antlr4 {

virtual std::string toString(const std::vector<std::string> &ruleNames, RuleContext *stop);

virtual bool operator == (const RuleContext &other) { return this == &other; } // Simple address comparison.
bool equal(const RuleContext &other) { return this == &other; } // Simple address comparison.

private:
void InitializeInstanceFields();
Expand Down
1 change: 1 addition & 0 deletions cpp/third_party/zlib-1.2.13/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.11)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
message("-- Configuring zlib")
project(zlib C)

Expand Down

0 comments on commit 216f170

Please sign in to comment.