ldc-developers/ldc — pull request #128 by redstar (2012-06-18 17:59:21+00:00)
Title: New CMake module to locate libconfig++

The current code to locate libconfig++ has some trouble:
- It is located in the main CMakeList file but should be a module of its own
- It depends on pkg-config which is not available on Windows
- The returned values are not really useful therefore the library name is hard coded

This commit tries to solve these problems. For a Unix-like system there should be no difference.
Additionally, you can override the variables on the command line which is useful for builds on Windows.

Please review!! After committing this, CMake support for MSVC is more or less finished! (Only a problem with spaces in pathes left.)