[CMake] CMake Error: The source directory "./build/CMakeFiles/CMakeTmp" does not exist.

Roger Martin waldensianspirit at gmail.com
Tue Sep 23 17:04:34 EDT 2008


I also test with C:\OpenGL\cmake-2.6.1\Example\Hello which I believe foloows
the simple test case you described with c:\foo

And same result: cl.exe can't build a simple project.



On Tue, Sep 23, 2008 at 4:58 PM, Roger Martin <waldensianspirit at gmail.com>wrote:

> Setting the full path fixes it.  I'm wondering, on relative paths, if the
> cmake home/bin directory is the root.
>
> Yes, ./ is the current directory of the project from where I run a cmd
> script.
>
> ------------
> With the paths fixed as you pointed out, I then get an error dialog with
> ...
> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
>   9.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.
> ...
> But by hand-build-environment, I can compile and link a 64 bit program with
> cl.exe and the Windows SDK
>
> I use Netbeans and Visual C++ 2008 Express IDE's.
>
> But for some complex projects such as http://www.openscenegraph.org CMake
> is the right tool.
>
>
>
> On Tue, Sep 23, 2008 at 4:34 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
>
>> Roger Martin wrote:
>>
>>> Hi,
>>>
>>> I'm trying to build a build with cmake-2.6.1-win32-x86 CMakeSetup for
>>> "Visual Studio 9 2008 Win64" as the build target.
>>>
>>> Keep getting a
>>> ---------------------------
>>>
>>> CMake Error: The source directory "./build/CMakeFiles/CMakeTmp" does not
>>> exist.
>>> Specify --help for usage, or press the help button on the CMake GUI.
>>>
>>> ---------------------------
>>>
>>> but when I look, the directory is there; it does exist.  Got the nightly
>>> build to see what could be the problem or if the issue has already been
>>> caught and fixed.  Yet get the same issue trying to setup the build for
>>> cmake [Was also going to try to compile cmake for 64 bit machines].
>>>
>>> The project root is ./ and the build folder is ./build.
>>>
>>>
>> Could this be some sort of path length issue?  What is "."?
>>
>> Also, can you build a very simple project:
>>
>> c:/foo/CMakeLists.txt
>> add_library(foo foo.c)
>>
>> Run CMakeSetup and set source to c:/foo and build to c:/foo/build.
>>
>> -Bill
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080923/2b87a626/attachment.htm>


More information about the CMake mailing list