Hello Alex, hello Brad,

thanks a lot for your help.

> You are trying to put the build tree of the try-compile test on top of
> the main build tree.  Try this:

Ah, I begin to understand.

>
> TRY_COMPILE(C_MAKE_COMPILER_WORKS
>              ${CMAKE_BINARY_DIR}/CMakeTmp
>              ${PROJECT_SOURCE_DIR}/CMake_Modules/Test_64_Bit_Offset.c
>              OUTPUT_VARIABLE_OUTPUT)
>
> However, you may want to look at the CheckCSourceCompiles module.

I already switched to this module and it works fine.
So the example in the book is slightly wrong. Is this already fixed in the new  
version (for CMake-2.2)? Or to whom should I send a report.


Thanks again,
        Bernd

-- 
Bernd Schubert
PCI / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to