[CMake] Where does cmake look for include files?

Marianne B. Wiese mbwiese at gmail.com
Sat Aug 9 13:50:45 EDT 2008


Ah..

Should I put a line like

CHECK_INCLUDE_FILE_CONCAT("windows.h"       HAVE_WIN_H)
as the first check?

For now I have just manually written #define HAVE_GL_GLU_H 1 into the
config.h before compiling, and I can run FLTK's fractals example.
I am looking forward to work with the Orfeo toolbox, did not want to spend
too much time with CMake now.

Thanks

Marianne
On Sat, Aug 9, 2008 at 4:47 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> Marianne B. Wiese wrote:
>
>> Hello
>>  Just to let you know:
>>  It turns out that the way cmake looks for a file to include, is by
>> TRY_CO)MPILE() a tiny c-file whith for example #include GL/glu.h.
>>  However, Visual C++ cannot compile with #include <glu.h> if <windows.h>
>> is not included too.
>> Therefore I will not succeed in compiling FLTK, unless I change
>> checkincludefiles.cmake.
>>
>>
> You just have to add a check include for windows.h before the glu.h as that
> is what CONCAT part of that macro does, it will add additional includes to
> the check in the order they are found.
>
>> I think I will give it up, and see if I can get Orfeo Toolbox to work with
>> a binary installed FLTK instead.
>>
>>
> I am not sure what you are giving up on???   I build FLTK with cmake all
> the time.
>
>
> -Bill
>





-- 
Marianne B. Wiese
Reventlowsgade 30
1651 København V

+45 33 22 69 18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080809/277d8b41/attachment.htm>


More information about the CMake mailing list