Re: [CMake] [RFC] cmake analog to AC_SEARCH_LIBS

2013-09-09 Thread Stewart, Robert
Игорь Пашев 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

Re: [CMake] [RFC] cmake analog to AC_SEARCH_LIBS

2013-09-09 Thread Игорь Пашев
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

[CMake] [RFC] cmake analog to AC_SEARCH_LIBS

2013-09-06 Thread Игорь Пашев
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).