[CMake] CMake Error: Attempt at a recursive or nested TRY_COMPILE
in directory
Bernd Schubert
bernd-schubert at gmx.de
Mon Jun 12 17:10:56 EDT 2006
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
More information about the CMake
mailing list