[CMake] Cross Compilang and NSIS

Hendrik Sattler post at hendrik-sattler.de
Mon Mar 9 07:01:23 EDT 2009


Andreas Schneider schrieb:
> My problem is that cmake thinks that it is a windows version...

No, it still knows that it runs on Linux and can use the native tools if
you tell it so in the toolchain file.

> So you successfully *cross compile* with mingw for windows under linux and 
> successfully create NSIS installers with cpack?

Yes, IIRC, doing that to cross-compile openobex for win32 using the
mingw packages on a Debian host.
That depends on your setting of CMAKE_FIND_ROOT_PATH_MODE_PROGRAM to
NEVER in the toolchain file.

I can verify this again, this evening...

HS


More information about the CMake mailing list