The CMake 2.8.0 documentation for try_compile() states:<div><br></div><div>Some extra flags that can be included are, INCLUDE_DIRECTORIES, LINK_DIRECTORIES, and LINK_LIBRARIES.</div><div><br></div><div>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.</div>
<div><br></div><div>I'ld appreciate any insight that you might have to offer.</div><div><br></div><div>Steve</div>