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

2006-01-16 Thread William A. Hoffman
At 12:06 PM 1/14/2006, Alexander Neundorf wrote: >Hi, > >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

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 ? ME

[CMake] problem with CHECK_FUNCTION_EXISTS() and CMAKE_REQUIRED_LIBRARY

2006-01-14 Thread Alexander Neundorf
Hi, 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 ? MESSAGE(STATUS "have_o