On 2/23/2012 3:02 PM, Bill Hoffman wrote:
On 2/23/2012 3:40 PM, Kenneth Boyd wrote:
On 2/23/2012 1:46 PM, Bill Hoffman wrote:
Right. Unfortunately, I have MingW installed from official tarballs,
rather than the MSYS executable installer; the MSYS installer *.exe
critically failed for me back in 2001, so once I got a working install
procedure from official tarballs I stuck with it.
What is happening is that I have an official MingW /bin/sh in my path
(which triggers MSYS), but the pathnames required by windows-side tools
such as MingW32 gcc are still Windows-ish (MingW).
AFAIK, if /bin/sh is in your PATH gmake goes into shell mode and you
can not use windows style shell stuff in the makefile. If you take
out the check that I put in, it should fail in some other way. I put
the check in early with a message to avoid people getting the weird
errors later.
If if does fail in some other way, then obviously the proposed patch
isn't ready to submit ;)
I'll include that as part of testing. The prototyping I did was
sufficient to get CMake to bootstrap, so it should take a more
complicated test case to trigger problems.
It does seem that there is an issue with allowing make.exe to work.
I think if you set CMAKE_MAKEPROGRAM to make.exe it should work.
Ok.
A patch that found different make.exe or make-mingw and then tested
them would not be rejected. I still don't see how we can avoid having
separate generators for MinGW and Msys, and I certainly don't think a
third one would help reduce confusion.
I'm assuming that the Msys generator is intended for the results of the
MSYS installer *.exe . As such, I'd prefer to assume the current MSYS
generator is known-good for that case. My impression (please correct if
inaccurate) is that it would be preferable to have the final patch
augment the MSYS generator to discern which filepath convention is
expected.
I don't see what case your 3rd generator will handle. Seems to me
there are only two cases regardless of how it was installed:
1. you have /bin/sh in your PATH and gmake runs commands via /bin/sh
2. you do not have /bin/sh in your PATH and gmake runs commands via
the native windows shell.
I need to handle /bin/sh in my PATH, without using CygWin-style paths
that the MingW utilities cannot handle.
I wonder if the plain "Unix Makefiles" generator would work for you?
That should be retested, yes.
Kenneth
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake