[CMake] MinGW and import libraries to system libraries, was Re: Finding MinGW compiler libraries?

2008-08-31 Thread Werner Smekal
Hi Bill, For system libraries like this it is often better to just link them in with -l. The compiler should be able to find them if it is installed correctly. There is a good chance CMake will get it wrong. So, the correct CMake solution for system/compiler libraries is to just use the

[CMake] CMake erases targets at regeneration.

2008-08-31 Thread Óscar Fuentes
I'm observing something very strange with the MSYS Makefiles generator: after some CMakeLists.txt file is altered, on the next 'make' cmake is automatically invoked for regenerating the makefiles. Well, after this is done, some target files are deleted. This is the macro that creates the targets: