Browse Source

Don't build test executables if subproject

master
dirkson 6 months ago
parent
commit
cf56fdab7f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      meson.build

+ 2
- 1
meson.build View File

@@ -63,9 +63,10 @@ depdynload = dependency('dynload', fallback : ['dynload', 'dynload_dep'])
63 63
 libboksi = library('boksi', boksisrc, include_directories : incdir, dependencies: [depdynload, depgtk, depxt, depxaw, depncurses, deplibui, depxcb] )
64 64
 boksi_dep = declare_dependency(link_with : libboksi, include_directories : incdir)
65 65
 
66
+if not meson.is_subproject()
66 67
 
67 68
 executable('boksibasic', 'src/example/basic.c', include_directories : incdir, dependencies: boksi_dep)
68 69
 executable('boksicomplex', 'src/example/complex.c', include_directories : incdir, dependencies: boksi_dep)
69 70
 
70
-
71
+endif
71 72
 

Loading…
Cancel
Save