[CMake] CHECK_C_SOURCE_COMPILES and include_directories

Rolf Eike Beer eike at sf-mail.de
Sun May 10 07:38:57 EDT 2015


Florian Weimer wrote:

> Is there a way to make CHECK_C_SOURCE_COMPILES honor the discovered
> include directories?

 cmake --help-module CheckCSourceCompiles

The following variables may be set before calling this macro to modify
the way the check is run:
[…]
 CMAKE_REQUIRED_INCLUDES = list of include directories

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150510/6302e258/attachment.sig>


More information about the CMake mailing list