Skip to content

Commit

Permalink
meson: don't generate pkgconfig if used as subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Oct 2, 2024
1 parent 6b9de02 commit 31e517e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1311,5 +1311,7 @@ if get_option('test')
subdir('test')
endif

pkg = import('pkgconfig')
pkg.generate(sdl2, subdirs: 'SDL2')
if not meson.is_subproject()
pkg = import('pkgconfig')
pkg.generate(sdl2, subdirs: 'SDL2')
endif

0 comments on commit 31e517e

Please sign in to comment.