On Fri, Jul 23, 2010 at 5:36 AM, Andreas Raab <andreas.raab@gmx.de> wrote:

On 7/22/2010 5:24 PM, David T. Lewis wrote:
On Thu, Jul 22, 2010 at 02:15:01PM -0700, Andreas Raab wrote:
Seriously? You mean that if I drop the stuff from
http://eleves.ec-lille.fr/~couprieg/divers/patches.zip into my build
tree cmake will magically generate MSVC build files and it'll just work?
If that's actually true, I'm sold :-)

I'll try it tonight.

It's possible that it actually *is* true. This is exactly what CMake
was designed to do (hence the name, "Cross-platform Make").

Not much success. I tried running CMake naively and was instantly greeted with the recommendation to run cmake/configure. Which of course is a shell script so needs to be run from Cygwin.
 
Sorry about that. When I wrote my patches, I was using MinGW on Linux or on Windows with MSYS, so a shell was easier to use. I didn't consider MSVC at that time. I can fix it and not require a shell.
 
When I do that (after some fiddling with --src and --generator) it complains that the win32 directory doesn't have a CMakeLists.txt:

$ ../platforms/win32/cmake/configure --src=./src/ --generator="Visual Studio 10"
-- Configuring squeak  for i686-pc-cygwin
-- Using source directory /cygdrive/c/SqueakVM/cmake-test/winbuild/src
-- Using generator Visual Studio 10
../platforms/win32 -DVM_HOST=i686-pc-cygwin -DPLATFORM_SOURCE_VERSION= -DVM_VERSION= -DOPT--src=/cygdrive/c/SqueakVM/cmake-test/winbuild/src
CMake Error: The source directory "C:/SqueakVM/cmake-test/platforms/win32" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Which is correct, but I don't see a CMakeLists.txt in the patches. So I'm at a loss at this point. Geoffrey, any instructions?
 
That's weird. IIRC, the file platforms/CMakeLists.txt file exists, and it shouldn't look for that file in platforms/win32. I'll fix the configure script this evening.