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
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: