[CMake] try_compile: more verbose format wanted

Steven Van Ingelgem steven at vaningelgem.be
Mon Jul 14 09:28:58 EDT 2008


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
  )



Greetings & thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080714/3dff34d5/attachment-0001.htm>


More information about the CMake mailing list