Skip to content

The same library among different OS #11514

Answered by LukashonakV
LukashonakV asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @eli-schwartz , thank you
Btw

########################
# Checking for iniparser
########################
iniparser_dep = compiler.find_library('iniparser', has_headers: 'iniparser.h', required: false)

if not iniparser_dep.found()
  iniparser4_dep = compiler.find_library('iniparser4', has_headers: 'iniparser4/iniparser.h', required: false)

   iniparser_dep = declare_dependency(
      include_directories: include_directories('/usr/include/iniparser4'),
      dependencies: iniparser4_dep)
endif

if not iniparser_dep.found()
   error('iniparser library is required!')
else
   if not compiler.has_function('iniparser_load', dependencies: iniparser_dep)
      error('iniparser library is requ…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@eli-schwartz
Comment options

@LukashonakV
Comment options

Answer selected by LukashonakV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants