[CMake] CheckTypeSize and non-standard headers

Aaron Turner synfinatic at gmail.com
Mon Feb 16 16:43:14 EST 2009


On Mon, Feb 16, 2009 at 12:14 PM, Michael Jackson
<mike.jackson at 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


More information about the CMake mailing list