Skip to content

Commit 3f3c7d7

Browse files
author
Anton
authored
Update CMakeLists.txt
Do not use target_link_libraries with alias
1 parent 3359603 commit 3f3c7d7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clickhouse/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
7171
# /usr/bin/ld: CMakeFiles/simple-test.dir/main.cpp.o: undefined reference to symbol '_Unwind_Resume@@GCC_3.0'
7272
# /usr/bin/ld: /lib/x86_64-linux-gnu/libgcc_s.so.1: error adding symbols: DSO missing from command line
7373
# FIXME: that workaround breaks clang build on mingw
74-
IF (BUILD_SHARED_LIBS)
75-
TARGET_LINK_LIBRARIES (clickhouse-cpp-lib gcc_s)
76-
ELSE()
77-
TARGET_LINK_LIBRARIES (clickhouse-cpp-lib-static gcc_s)
78-
ENDIF()
74+
TARGET_LINK_LIBRARIES (clickhouse-cpp-lib gcc_s)
7975
ENDIF ()
8076
ENDIF ()
8177

0 commit comments

Comments
 (0)