I investigated this a little more and I think this is a bug in CMake: [ 21%] [BISON][dvParse] Building parser with bison 2.1 cd C:\TEMP\datadraw\src && "C:\Program Files\GnuWin32\bin\bison.exe" -l -d -p dv -b dv -d -o dvparse.c dvparse.y
*==> this is ok* "C:\Program Files\CMake 2.7\bin\cmake.exe" -E cmake_progress_report C:\TEMP\datadraw\CMakeFiles\CMakeTmp\CMakeFiles 1 [ 23%] Building C object CMakeFiles/datadraw.dir/dvparse.obj C:\MinGW\bin\gcc.exe -IC:\TEMP\datadraw\src\.. -IC:\TEMP\datadraw\src\..\util -o CMakeFiles\datadraw.dir\dvparse.obj -c C:\TEMP\datadraw\CMakeFiles\CMakeTmp\dvparse.c gcc.exe: C:\TEMP\datadraw\CMakeFiles\CMakeTmp\dvparse.c: No such file or directory *==> this is not* Why would it want to take "CMakeTmp\dvparse.c"? I have in my CMakeLists: ========================== add_executable( datadraw # dvParse dvparse.c dvparse.h # dvScan dvscan.c dvscan.h .... ) set_source_files_properties(dvparse.c dvparse.h dvscan.c dvscan.h PROPERTIES GENERATED TRUE) ========================== What I would expect is that CMake looks in the correct directory, being the "/src" one, and not the CMakeTmp one. Greetings, Steven 2008/7/14 Steven Van Ingelgem <[EMAIL PROTECTED]>: > 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. >
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake