Skip to content

Commit

Permalink
Both blocks of the if statement are identical. (#6965)
Browse files Browse the repository at this point in the history
Simplification of the code due to the fact that both blocks of the if
statement are identical.
  • Loading branch information
smurav authored Oct 17, 2024
1 parent 26d7dd9 commit 7dcb4e6
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions tools/clang/tools/libclang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,10 @@ add_clang_library(libclang ${ENABLE_SHARED} ${ENABLE_STATIC}
)

if(ENABLE_SHARED)
if(WIN32)
set_target_properties(libclang
PROPERTIES
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
else()
set_target_properties(libclang
PROPERTIES
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
endif()
set_target_properties(libclang
PROPERTIES
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)

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

0 comments on commit 7dcb4e6

Please sign in to comment.