Skip to content

Commit 7dcb4e6

Browse files
authored
Both blocks of the if statement are identical. (microsoft#6965)
Simplification of the code due to the fact that both blocks of the if statement are identical.
1 parent 26d7dd9 commit 7dcb4e6

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

tools/clang/tools/libclang/CMakeLists.txt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,10 @@ add_clang_library(libclang ${ENABLE_SHARED} ${ENABLE_STATIC}
159159
)
160160

161161
if(ENABLE_SHARED)
162-
if(WIN32)
163-
set_target_properties(libclang
164-
PROPERTIES
165-
VERSION ${LIBCLANG_LIBRARY_VERSION}
166-
DEFINE_SYMBOL _CINDEX_LIB_)
167-
else()
168-
set_target_properties(libclang
169-
PROPERTIES
170-
VERSION ${LIBCLANG_LIBRARY_VERSION}
171-
DEFINE_SYMBOL _CINDEX_LIB_)
172-
endif()
162+
set_target_properties(libclang
163+
PROPERTIES
164+
VERSION ${LIBCLANG_LIBRARY_VERSION}
165+
DEFINE_SYMBOL _CINDEX_LIB_)
173166

174167
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
175168
set(LIBCLANG_LINK_FLAGS " -Wl,-compatibility_version -Wl,1")

0 commit comments

Comments
 (0)