Skip to content

Commit

Permalink
Improve syntax of libgcrypt macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga committed Mar 14, 2024
1 parent 31d2708 commit 34dc772
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -816,16 +816,15 @@ if libgcrypt_dir != ''
link_args: ['-L' + libgcrypt_dir / 'lib', '-lgcrypt'],
include_directories: include_directories(libgcrypt_dir / 'include'),
)
endif

libgcrypt = dependency('libgcrypt', required: false)

if not libgcrypt.found()
libgcrypt = cc.find_library(
'libgcrypt',
dirs: libsearch_dirs,
required: false,
)
else
libgcrypt = dependency('libgcrypt', required: false)
if not libgcrypt.found()
libgcrypt = cc.find_library(
'libgcrypt',
dirs: libsearch_dirs,
required: false,
)
endif
endif

libgcrypt_config = find_program(
Expand Down

0 comments on commit 34dc772

Please sign in to comment.