[Insight-users] Re: Getting started with ITK/CMake (a beginner's
question)
Luis Ibanez
luis.ibanez at kitware.com
Wed Sep 28 12:02:43 EDT 2005
Hong,
It seems that you are trying to reuse the binary directory that you use
for a previous build. This is not a good idea. You must use a new binary
directory every time that you build a new source tree.
CMake does this checking for preventing you from corrupting your binary
tree by accident.
Regards,
Luis
-------------------
Xiang, Hong wrote:
> Hello Luis,
>
> I've just freshly installed ITK and CMake on my MS-Windows XP system with Visual
> Studio .NET 2003 installed earlier. I try to walk through the ITK user's guide
> on "Getting started with ITK".
> When first time running CMakeSetup, I specify the source code directory as
> C:\Program Files\InsightToolkit-2.2.0\Examples\Installation, and then clicked
> configure, I got an error message as below:
>
> CMake Error: the source "C:\Program
> Files\InsightToolkit-2.2.0\Examples\Installation\CMakeLists.txt" does not match
> the source "C:\Program Files\InsightToolkit-2.2.0\code\CMakeLists.txt" used to
> generate the cache, Re-run cmake with a different source directory.
>
> Following the instruction, I re-run cmake with a different source directory
> (newly created):
>
> C:\Program Files\InsightToolkit-2.2.0\Testing\simple_start
>
> where I coppied the two essentail files over to this directory, still I got same
> error message as above.
>
> Should I replace the "C:\Program Files\InsightToolkit-2.2.0\code\CMakeLists.txt"
> with "C:\Program
> Files\InsightToolkit-2.2.0\Examples\Installation\CMakeLists.txt"?
>
> Thanks for a help.
>
> Hong
>
>
More information about the Insight-users
mailing list