[CMake] Release and Debug build linking
Lee Butler
iraytrace at gmail.com
Tue Oct 6 18:06:46 EDT 2015
So if this is the case, how does one "write correctly" the find/config
module so that both debug and release libraries are found? I've got a
library I depend on whose maintainer may not have built the best Find
module in the world. I've looked at
https://cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file
already. It doesn't seem to address picking up both release and debug
libraries. I gather from another example that the goal is to create a
list of the form: optimized;foolib.lib;debug;foolibd.lib and provide
that in the FOO_LIBRARY variable?
More information about the CMake
mailing list