[CMake] try_compile: more verbose format wanted

Bill Hoffman bill.hoffman at kitware.com
Mon Jul 14 09:41:15 EDT 2008


Steven Van Ingelgem wrote:
> Hi all,
> 
> 
> I am trying to convert "datadraw" into a CMake project, but I'm running 
> against this problem:
> 
> 
> C:\TEMP\datadraw>cmake . -G "MinGW Makefiles"
> -- Building datadraw...
> CMake Error at cmake/prebuilt.cmake:41 (MESSAGE):
>   datadraw failed to build.  This is a needed file for the database
>   precompilation!
> Call Stack (most recent call first):
>   CMakeLists.txt:55 (INCLUDE)
> 
> 
> This output is very small, and I cannot find any reason why it would be 
> failing (because when I run the same command in the "src" directory, 
> it's building fine).
> 
> 
> The command which is building datadraw is:
>   TRY_COMPILE(
>       DATADRAW_OK
>       ${PROJECT_SOURCE_DIR}/${CMAKE_FILES_DIRECTORY}/CMakeTmp
>       ${PROJECT_SOURCE_DIR}/src
>       datadraw
>   )
> 
> 
See CMakeError.log that was generated during the try compile.

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)


More information about the CMake mailing list