Re: [CMake] non-canonical paths and generated files = error

2006-01-15 Thread Alexander Neundorf
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

Re: [CMake] howto check for res_init() ?

2006-01-15 Thread Brad King
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

Re: [CMake] problem with CHECK_FUNCTION_EXISTS() and CMAKE_REQUIRED_LIBRARY

2006-01-15 Thread Brad King
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 ?