[CMake] Problems to use TRY_COMPILE
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Apr 3 15:15:41 EDT 2008
On Thursday 03 April 2008, Vitor Vasconcelos Araujo Silva wrote:
> Hello guys,
>
> I'm trying to use the TRY_COMPILE command and I guess I'm probaly
> making some mistake or I misunderstood the command.
>
> My command is this one:
>
> TRY_COMPILE(RESULT ${PROJECT_BINARY_DIR}
>
> ${PROJECT_SOURCE_DIR}/teste.cpp
> CMAKE_FLAGS
> COMPILE_DEFINITIONS -I${QT_INCLUDE_DIR}
> -I${QT_QTCORE_INCLUDE_DIR}
> -l${QT_QTCORE_LIBRARY}
> OUTPUT_VARIABLE MY_OUT
> )
Did you try to use the macros CHECK_CXX_SOURCE_COMPILES() and friends which
come with cmake ?
What's missing there ?
Alex
More information about the CMake
mailing list