[Cmake] CMake, first steps
Bill Hoffman
bill . hoffman at kitware . com
Wed, 23 Jul 2003 14:02:00 -0400
The Source directory is the directory that contains the source
for the project. This directory should contain the top level
CMakelists.txt file for your project. The Binary directory is
the directory that the software will be built in. This is the directory
that will contain the .dsp/makefile/.vcproj files. It can be the
same as the Source directory, although it is recommended that a different
directory be used. I would recommend that you remove the CMakeCache.txt
file from your Source directory and start over.
-Bill
At 01:26 PM 7/23/2003, Otto Wyss wrote:
>Since I'd like to use CMake for generating makefiles on Linux I first
>tried to use it on Windows and see if it's able to create the project
>files for VC++. I downloaded CMake for Win32, installed it and run the
>CMakeSetup. CMakeSetup request me to enter a source and binary directory
>but not a project directory!? Well I choose to enter the project
>directory as source and binary and CMake seems to be happy.
>
>After that I pressed "Configure" since "OK" was still disabled. Three
>lines come up "CMAKE_BACKWARDS_COMPATIBILITY", "EXECUTABLE_OUTPUT_PATH"
>and "LIBRARY_OUTPUT_PATH". Since I couldn't figure out what to enter I
>choose to use the project directory again.
>
>"OK" is still disabled, so I pressed "Configure" again. Now comes up an
>error message
>
> CMake Error: Error: source: C:/Devel/wxGuide/filer/CMakeLists.txt
> Does not match source used to generate cache...
> Re-run CMake with a different source directory.
>
>What does this mean? What can I do to go forward to enter the files,
>etc.? I have the usual project directory where CMakeLists.txt and the
>project files should be located.
>
>O. Wyss
>
>--
>See "http://wxguide . sourceforge . net/" for ideas how to design your app.
>_______________________________________________
>Cmake mailing list
>Cmake at www . cmake . org
>http://www . cmake . org/mailman/listinfo/cmake