diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-25 12:34:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-02 21:14:02 (GMT) |
commit | 869328aac31f8e702ac7039ce72c6fa485432733 (patch) | |
tree | 1f4d0c554be7ef4340f900d43785e5eaf11e812c /Templates | |
parent | aa0a3562dd47bdd6d9ca3058bd1dfd525e79d36d (diff) | |
download | CMake-869328aac31f8e702ac7039ce72c6fa485432733.zip CMake-869328aac31f8e702ac7039ce72c6fa485432733.tar.gz CMake-869328aac31f8e702ac7039ce72c6fa485432733.tar.bz2 |
cmComputeTargetDepends: Use valid config to compute target depends.
If CMAKE_BUILD_TYPE is set, and user code contains:
target_link_libraries(myexe prefix_$<$<CONFIG:Debug>:debug>)
then the computation with an empty config was computing a target-level
dependency on a target or library called prefix_, and a dependency
on a target or library called prefix_debug (as expected).
The existing logic skips 'prefix_' because it is not a known target,
and defers to the link-dependencies logic to find the library. The
link-dependencies logic does not incorrectly handle the config as
cmComputeTargetDepends did, and so did not encounter 'prefix_'
during its computation. This likely had no effect on the generated
buildsystem.
Diffstat (limited to 'Templates')
0 files changed, 0 insertions, 0 deletions