Skip to content

Commit

Permalink
Append BML libraries twice to link line
Browse files Browse the repository at this point in the history
This is to resolve issues with libraries list order
  • Loading branch information
jeanlucf22 authored and cnegre committed May 18, 2022
1 parent 97afb34 commit e1dbc9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@ include(FindPkgConfig)
if(NOT TARGET BML::bml)
find_package(BML CONFIG QUIET)
endif()
#append libraries twice to resolve issues with libraries list order
if(TARGET BML::bml)
message(STATUS "Found bml: BML::bml")
list(APPEND LINK_LIBRARIES BML::bml)
list(APPEND LINK_LIBRARIES BML::bml)
else()
pkg_check_modules(BML REQUIRED bml)
message(STATUS "Found bml: ${BML_LDFLAGS}")
list(APPEND LINK_LIBRARIES ${BML_LDFLAGS})
list(APPEND LINK_LIBRARIES ${BML_LDFLAGS})
endif()

set(PROGRESS_GRAPHLIB FALSE CACHE BOOL "Compile with externel graph libraries")
Expand Down Expand Up @@ -149,6 +152,7 @@ else()
message(STATUS "Will not build with OpenMP")
endif()


set(PROGRESS_MPI FALSE CACHE BOOL "Compile with MPI support")
if(PROGRESS_MPI)
message(STATUS "Will build with MPI")
Expand Down

0 comments on commit e1dbc9e

Please sign in to comment.