[CMake] try_compile question

Alexander Neundorf a.neundorf-work at gmx.net
Tue May 4 16:04:53 EDT 2010


On Tuesday 04 May 2010, Steven Wilson wrote:
> 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'd recommend not to use try_compile() directly.
Did you try check_c_source_compiles() ? This is more high level.

Does that work for you ?

Alex


More information about the CMake mailing list