[CMake] try_compile question

Steven Wilson steven.wesley.wilson at gmail.com
Tue May 4 15:54:35 EDT 2010


The CMake 2.8.0 documentation for try_compile() states:

Some extra flags that can be included are, INCLUDE_DIRECTORIES,
LINK_DIRECTORIES, and LINK_LIBRARIES.

I need to know how to actually set those values so that try_compile() makes
use of them.   The documentation does not make it clear if they are
arguments to try_compile() or should be set in some other way.   I have
tried setting -DINCLUDE_DIRECTORIES:STRING=${DIRECTORIES} in the arguments
to CMAKE_FLAGS to try_compile(), but in the case where ${DIRECTORIES}
contains a list, only one value of the list makes it into the Cache of the
output build system.

I'ld appreciate any insight that you might have to offer.

Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100504/dda17631/attachment.htm>


More information about the CMake mailing list