Skip to content

Commit e1dbc9e

Browse files
jeanlucf22cnegre
authored andcommitted
Append BML libraries twice to link line
This is to resolve issues with libraries list order
1 parent 97afb34 commit e1dbc9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,16 @@ include(FindPkgConfig)
7777
if(NOT TARGET BML::bml)
7878
find_package(BML CONFIG QUIET)
7979
endif()
80+
#append libraries twice to resolve issues with libraries list order
8081
if(TARGET BML::bml)
8182
message(STATUS "Found bml: BML::bml")
8283
list(APPEND LINK_LIBRARIES BML::bml)
84+
list(APPEND LINK_LIBRARIES BML::bml)
8385
else()
8486
pkg_check_modules(BML REQUIRED bml)
8587
message(STATUS "Found bml: ${BML_LDFLAGS}")
8688
list(APPEND LINK_LIBRARIES ${BML_LDFLAGS})
89+
list(APPEND LINK_LIBRARIES ${BML_LDFLAGS})
8790
endif()
8891

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

155+
152156
set(PROGRESS_MPI FALSE CACHE BOOL "Compile with MPI support")
153157
if(PROGRESS_MPI)
154158
message(STATUS "Will build with MPI")

0 commit comments

Comments
 (0)