Bernd Schubert wrote:
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
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_SO
Bernd Schubert wrote:
Hi,
I'm just beginning to learn CMake and now I'm lost.
I need to check for large file support and therefore need to use TRY_COMPILE.
In my main CMakeLists.txt file I tried similar to my Mastering CMake book
(for version 2.0):
TRY_COMPILE(C_MAKE_COMPILER_WORKS
tering CMake book
> (for version 2.0):
>
> TRY_COMPILE(C_MAKE_COMPILER_WORKS
> ${CMAKE_BINARY_DIR}
> ${PROJECT_SOURCE_DIR}/CMake_Modules/Test_64_Bit_Offset.c
> OUTPUT_VARIABLE_OUTPUT)
>
> [EMAIL PROTECTED] funionfs-0.4>cmake .
> CMake
BINARY_DIR}
${PROJECT_SOURCE_DIR}/CMake_Modules/Test_64_Bit_Offset.c
OUTPUT_VARIABLE_OUTPUT)
[EMAIL PROTECTED] funionfs-0.4>cmake .
CMake Error: Attempt at a recursive or nested TRY_COMPILE in
directory /home/bernd/src/funionfs-0.4
-- Configuring done
Should this TRY_CO