File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,22 @@ if cc.has_header('mcqd.h')
5
5
else
6
6
mcqd = disabler ()
7
7
endif
8
- cliquer = cc.find_library (' cliquer' , required : not is_windows, disabler : true )
9
8
10
- # Cannot be found via pkg-config
11
- planarity = cc.find_library (
12
- ' planarity' ,
13
- required : not is_windows,
14
- disabler : true ,
15
- )
9
+ cliquer = dependency (' libcliquer' , required : false , disabler : true )
10
+ if not cliquer.found()
11
+ # fallback for older versions without pkg-config
12
+ cliquer = cc.find_library (' cliquer' , required : not is_windows, disabler : true )
13
+ endif
14
+
15
+ planarity = dependency (' libplanarity' , required : false , disabler : true )
16
+ if not planarity.found()
17
+ # fallback for older versions without pkg-config
18
+ planarity = cc.find_library (
19
+ ' planarity' ,
20
+ required : not is_windows,
21
+ disabler : true ,
22
+ )
23
+ endif
16
24
17
25
py.install_sources(
18
26
' __init__.py' ,
Original file line number Diff line number Diff line change 1
- brial = cc.find_library (' brial' , required : false , disabler : true )
1
+ brial = dependency (' brial' , required : false , disabler : true )
2
+ if not brial.found()
3
+ # fallback for older versions without pkg-config
4
+ brial = cc.find_library (' brial' , required : false , disabler : true )
5
+ endif
2
6
# Cannot be found via pkg-config
3
7
brial_groebner = cc.find_library (
4
8
' brial_groebner' ,
You can’t perform that action at this time.
0 commit comments