Von: Zachary Pincus [EMAIL PROTECTED]
No change upon updating to the latest CVS CMake. The error message is
now less helpful in that this sort of line is now absent:
CMake Error: CMake failed to properly look up cmSourceFile: /Users/
zpincus/Documents/Research/Theriot
Alexander Neundorf wrote:
Hi,
I tried to check for the function res_init()
with
CHECK_FUNCTION_EXISTS(res_init HAVE_RES_INIT)
This always fails, although it shouldn't.
The problem is this line in resolv.h:
/usr/include$ grep res_init *
resolv.h:#define res_init
Alexander Neundorf wrote:
I want to check for a function which isn't part of libc, but of libutil.
I tried this:
INCLUDE(CheckFunctionExists)
SET(CMAKE_REQUIRED_LIBRARIES util)
CHECK_FUNCTION_EXISTS(openpty HAVE_OPENPTY)
#SET(CMAKE_REQUIRED_LIBRARIES) # should I reset it here again ?