On Mon, Feb 16, 2009 at 12:14 PM, Michael Jackson <mike.jack...@bluequartz.net> wrote: > SET(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES}) > SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};/usr/include") > > CHECK_SYMBOL_EXISTS(wint_t "runetype.h" HAVE_WINT_T) > > SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE}) > > IF (HAVE_WINT_T) > message(STATUS "wint_t is available") > endif() >
Doesn't seem to work. FYI: echo '#include <runetype.h>' | gcc -E - | grep wint_t returns: typedef int __darwin_wint_t; typedef __darwin_wint_t wint_t; So I know I'm using the right header. this is cmake 2.6-patch 2 -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake