On Sat, Dec 1, 2012 at 1:15 AM, JonY <[email protected]> wrote:
I tried cmake, it didn't like that I was trying to use MSVC inside
> Cygwin by making too many assumptions in the generated makefile. The
> produced Makefile was not gmake compatible.
>
> I thought cmake was supposed to be better than autotools in the recent
> discussion.
>
>
I've tried that and it's a bug in CMake: when using the Unix Makefiles
generator.
The root cause is CMake is not adding the library search directory in the
Makefile, i. e. it does not add "/link /LIBPATH:C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\lib /LIBPATH:C:\Program Files
(x86)\Microsoft SDKs\Windows\v7.1A\Lib" to CMAKE_C_FLAGS, CMAKE_CXX_FLAGS
or CMAKE_LINKER_FLAGS.
I have reported that as a bug #13767:
http://public.kitware.com/Bug/view.php?id=13767
Other than that, it works for me.
That being said, I'm not surprised this has not been reported by anybody:
if you are using CMake and MSVC, it's likely you are generating Visual
Studio projects and solutions, not Unix Makefiles (it at least cl.exe,
link.exe, etc worked on Linux using Wine...)
> When I want to compile an autotools project, I need sh, which as you have
> > already said, is only half-legged available on Windows. And that's the
> > whole point of CMake, especially when Visual C++ is in the middle. Sure,
> > you can generate makefiles which call cl.exe, link.exe, etc, but in the
> > end, debuggin, profiling, distributed compilation will be a pain, whereas
> > they will work perfectly fine in projects using CMake.
> >
>
> As mentioned above, I redid my project with autoconf, automake and
> libtool.It drove MSVC drivers in Cygwin just fine, whereas cmake refused
> to do so.
>
>
I'm curious: how do you debug, profile, etc with the Visual Studio IDE?
AFAIK that requires either a VS project file, or attaching to the
already-running process.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public