Игорь Пашев wrote:
Hi, all. I'm using this macro to get AC_SEARCH_LIBS (from GNU
autoconf) functionality with CMake.
First of all, this macro searhes the function on libc, then,
if not found, in the given libraries. It sets two variables:
1) boolean if function found
2) string - in which
Having two variables is an advantage over autoconf:
HAVE_FOO is true if the function is found at all
FOO_LIB is a library where foo is found.
HAVE_FOO may be true, but FOO_LIB is empty, if the function foo is in libc
I can add ${FOO_LIB} to targets where I need foo; with autotools the
library
Hi, all. I'm using this macro to get AC_SEARCH_LIBS (from GNU autoconf)
functionality with CMake.
First of all, this macro searhes the function on libc, then, if not found, in
the given libraries. It sets two variables: 1) boolean if function found
2) string - in which library (may be empty).