Skip to content

Commit

Permalink
Trying to reduce the number of the libs v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Verbytskyi committed Jun 5, 2020
1 parent 52bf73a commit a3c67c2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ list(REMOVE_ITEM CMAKE_CXX_FLAGS "-fno-exceptions")
string (REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
message(STATUS "binder: LLVMSO=${LLVMSO}")
message(STATUS "binder: CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}")
if (LLVM_VERSION_MAJOR EQUAL 3 AND LLVM_VERSION_MINOR LESS 8 )
if ((LLVM_VERSION_MAJOR EQUAL 3) AND (LLVM_VERSION_MINOR LESS 8) )
target_link_libraries(binder PRIVATE
-Wl,--start-group
${lib_llvm_so_path}
Expand All @@ -72,8 +72,7 @@ clangTooling
-Wl,--end-group
)
endif()

if ( (LLVM_VERSION_MAJOR EQUAL 3 AND LLVM_VERSION_MINOR GREATER 7 ) OR ( LLVM_VERSION_MAJOR GREATER 3 AND LLVM_VERSION_MAJOR LESS 7 ) )
if ( ( (LLVM_VERSION_MAJOR EQUAL 3) AND (LLVM_VERSION_MINOR GREATER 7) ) OR ( (LLVM_VERSION_MAJOR GREATER 3) AND (LLVM_VERSION_MAJOR LESS 7) ) )
target_link_libraries(binder PRIVATE
${lib_llvm_so_path}
clang
Expand All @@ -93,7 +92,7 @@ target_link_libraries(binder
clangFrontend
)
endif()
if (LLVM_VERSION_MAJOR EQUAL 8 OR LLVM_VERSION_MAJOR EQUAL 9 )
if ( (LLVM_VERSION_MAJOR EQUAL 8) OR (LLVM_VERSION_MAJOR EQUAL 9) )
target_link_libraries(binder
PRIVATE
${lib_llvm_so_path}
Expand All @@ -104,8 +103,7 @@ target_link_libraries(binder
clangSerialization
)
endif()

if (LLVM_VERSION_MAJOR EQUAL 10 OR LLVM_VERSION_MAJOR GREATER 10 )
if ( (LLVM_VERSION_MAJOR EQUAL 10) OR (LLVM_VERSION_MAJOR GREATER 10) )
target_link_libraries(binder
PRIVATE
${lib_llvm_so_path}
Expand Down

0 comments on commit a3c67c2

Please sign in to comment.