On 31 Aug 2010, at 08:44, Tam Toucan wrote:

> I am using cmake cygwin. Is there something I need to do to get it to
> generate makefiles that are compatible with mingw32? The problem is that
> the makefile contains an absolute path to all sources that is only
> visible to cygwin programs. i.e. the command line ends up as
> 
>       mingw32-g++ /home/Tam/src/foo.C
> 
> but that only works for (cygwin) g++, mingw32-g++ knows nothing about
> the absolute (cygwin) path. So some way to either; generate different
> makefiles, change the <target>_SOURCES list of files to put /cygwin in
> front of each (seems hacky) or not use absolute paths (as per
> auto-tools).


I just reread this. You need to use cmake _not_ for cygwin (i.e. normal Windows 
binary) if you want non-cygwin paths in your makefiles and cmake for cygwin if 
you want to use cygwin paths in your makefiles.

Basically, your options are using the version of mingw provided with cygwin or 
using the CMake Windows version and remembering to specify mingw-make as the 
generator from the GUI.

--
Cheers,
Mike McQuaid
http://mikemcquaid.com

_______________________________________________
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

Reply via email to