[cmake-developers] Mixing generator expressions and debug|optimized|general keywords in target_link_libraries()
Nils Gladitz
nilsgladitz at gmail.com
Fri Aug 29 05:26:48 EDT 2014
I tried wrapping the libraries returned by FindBoost.cmake in
$<BUILD_INTERFACE> in a target_link_libraries() call and noticed that
this breaks because of the debug/optimized keywords that the find module
inserts.
Specifically it results in CMake trying to link e.g. "optimized.lib".
Should/could these keywords be handled at generation time (after
generator expressions expansion)?
There don't seem to be generator expressions that correspond to the
debug/optimized keywords exactly. Can/should there be?
e.g. $<DEBUG:> and $<OPTIMIZED:> output expressions.
The former expanding when the current configuration is listed in the
directory property DEBUG_CONFIGURATIONS.
Nils
More information about the cmake-developers
mailing list