This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 6bef0b0b232 fix: Hopefully fixed the build of the cpp-example on
windows systems (#10891)
6bef0b0b232 is described below
commit 6bef0b0b23245d599d5c2f26ba82bb4a86e260ed
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Aug 17 13:19:22 2023 +0200
fix: Hopefully fixed the build of the cpp-example on windows systems
(#10891)
---
example/client-cpp-example/src/CMakeLists.txt | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/example/client-cpp-example/src/CMakeLists.txt
b/example/client-cpp-example/src/CMakeLists.txt
index 6e9e60e089a..b3b117c5dda 100644
--- a/example/client-cpp-example/src/CMakeLists.txt
+++ b/example/client-cpp-example/src/CMakeLists.txt
@@ -33,12 +33,6 @@ IF (DEFINED BOOST_INCLUDEDIR)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ENDIF()
-# Add the libs for thrift
-IF(MSVC)
- SET(THRIFT_STATIC_LIB
"${CMAKE_SOURCE_DIR}/thrift/lib/Release/thriftmd.lib")
-ELSE()
- SET(THRIFT_STATIC_LIB "${CMAKE_SOURCE_DIR}/thrift/lib/libthrift.a")
-ENDIF()
# Add the libs for the cpp-client
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/client/lib)
@@ -46,8 +40,8 @@ ADD_EXECUTABLE(SessionExample SessionExample.cpp)
ADD_EXECUTABLE(AlignedTimeseriesSessionExample
AlignedTimeseriesSessionExample.cpp)
IF(MSVC)
- TARGET_LINK_LIBRARIES(SessionExample iotdb_session thriftmd)
- TARGET_LINK_LIBRARIES(AlignedTimeseriesSessionExample iotdb_session
thriftmd)
+ TARGET_LINK_LIBRARIES(SessionExample iotdb_session
"${CMAKE_SOURCE_DIR}/thrift/lib/Release/thriftmd.lib)
+ TARGET_LINK_LIBRARIES(AlignedTimeseriesSessionExample iotdb_session
"${CMAKE_SOURCE_DIR}/thrift/lib/Release/thriftmd.lib)
ELSE()
TARGET_LINK_LIBRARIES(SessionExample iotdb_session pthread)
TARGET_LINK_LIBRARIES(AlignedTimeseriesSessionExample iotdb_session
pthread)