Skip to content

Commit

Permalink
Fix detection of tdlib and mcqd with meson
Browse files Browse the repository at this point in the history
These are header-only libraries, so find_library doesn't work with them
  • Loading branch information
antonio-rojas committed Nov 17, 2024
1 parent 39ebbe4 commit fd7ca59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/sage/graphs/graph_decompositions/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
tdlib = cc.find_library('tdlib', required: false, disabler: true)
# tdlib is a header-only library
if cc.has_header('treedec/combinations.hpp')
tdlib = declare_dependency()
else
tdlib = disabler()
endif
# Cannot be found via pkg-config
rw = cc.find_library('rw')

Expand Down
7 changes: 6 additions & 1 deletion src/sage/graphs/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
bliss = cc.find_library('bliss', required: false, disabler: true)
mcqd = cc.find_library('mcqd', required: false, disabler: true)
# mcqd is a header-only library
if cc.has_header('mcqd.h')
mcqd = declare_dependency()
else
mcqd = disabler()
endif
cliquer = cc.find_library('cliquer')

# Cannot be found via pkg-config
Expand Down

0 comments on commit fd7ca59

Please sign in to comment.