cmake problem under windows/mingw

Peter Kümmel syntheticpp at gmx.net
Thu Feb 9 15:41:53 CET 2006


Ralf Habacker wrote:

>> I think the libnames cmake is looking for aren't correct for mingw. 
> Your right, I detected that with filemon from www.sysinternals.com. For 
> mingw (and cygwin) a specific binary release of cmake is required. The 
> cmake msvc binary releases has the extension hardcoded. There seems no 
> way to configure the prefix and extension at runtime. Not good :-(
> 
> See the following code fragment in source/kwsys/SystemTools.cxx
> 
> kwsys_stl::string SystemTools
> ::FindLibrary(const char* name,
>               const kwsys_stl::vector<kwsys_stl::string>& userPaths)
> <snip>
> 
> #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
>     tryPath = *p;
>     tryPath += "/";
>     tryPath += name;
>     tryPath += ".lib";
>     if(SystemTools::FileExists(tryPath.c_str())
>        && !SystemTools::FileIsDirectory(tryPath.c_str()))
>       {
>       return SystemTools::CollapseFullPath(tryPath.c_str());
>       }
> #else
> 
> Has anyone a mingw binary release for windows ?

Shouldn't this be switched by the actual generator ("MinGW Makefiles")
and not by the compiler which builds cmake?

Peter




More information about the Kde-buildsystem mailing list