[Cmake] Sharing source directories between Unix and Windows
Miller, James V (CRD)
millerjv at crd.ge.com
Tue Oct 2 10:43:21 EDT 2001
Usually the mechanism used for accessing a unix source tree from
a PC takes care of CR/LF problem. So Samba or Maestro, etc. will
do the CR/LF conversion automatically.
While it sounds like a good idea to share a source tree between
a PC and Unix, in practise it is usually more trouble than its
worth. Tools like CVS get confused when accessing Unix drives
from a PC. CVS tries to do the right thing convert CR/LF and
the filesystem tries to do the right thing and convert CR/LF
and you wind up with a royal mess.
What I have done in for the past few years is use separate
checkouts for Unix and PC. It means you cannot make a change
in the code and test it on Unix and PC before it hits the
repository but it seems to be the safest thing to do.
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Tuesday, October 02, 2001 10:00 AM
To: Amitha Perera; cmake at public.kitware.com
Subject: Re: [Cmake] Sharing source directories between Unix and Windows
All cmake is doing is this:
std::ifstream fin(path);
...
if(fin.getline(inbuffer, BUFFER_SIZE ) )
I guess the ms getline is confused by the unix end of line...
At 09:31 PM 10/1/2001 -0400, Amitha Perera wrote:
>Is it possible to get CMake under Windows to understand Unix-style
>end-of-line characters? I want to use my Unix-based source tree under
>Windows for multi-platform testing, but CMake hangs when parsing the
>files.
>
>Or is there some other way to conveniently share the sources between
>Unix and Windows?
>
>Thanks,
>Amitha.
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
_______________________________________________
Cmake mailing list
Cmake at public.kitware.com
http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list