30c2e1dd16
Since commit v3.3.0-rc1~62^2~5 (cmTarget: Store only cmListFileContext for CMP0023 handling, 2015-05-18) a call to target_link_libraries on a target that was defined in another (non-ancestor) directory crashes because no execution context is left active. Fix this by getting the execution context from the actual cmMakefile where the current target_link_libraries call takes place. Test this by verifying that such calls correctly produce an error diagnostic instead of crashing. |
||
---|---|---|
.. | ||
SubDirTarget | ||
CMP0023-NEW-2-result.txt | ||
CMP0023-NEW-2-stderr.txt | ||
CMP0023-NEW-2.cmake | ||
CMP0023-NEW-result.txt | ||
CMP0023-NEW-stderr.txt | ||
CMP0023-NEW.cmake | ||
CMP0023-WARN-2-stderr.txt | ||
CMP0023-WARN-2.cmake | ||
CMP0023-WARN-stderr.txt | ||
CMP0023-WARN.cmake | ||
CMakeLists.txt | ||
MixedSignature-result.txt | ||
MixedSignature-stderr.txt | ||
MixedSignature.cmake | ||
RunCMakeTest.cmake | ||
Separate-PRIVATE-LINK_PRIVATE-uses-result.txt | ||
Separate-PRIVATE-LINK_PRIVATE-uses.cmake | ||
SubDirTarget-result.txt | ||
SubDirTarget-stderr.txt | ||
SubDirTarget.cmake | ||
empty.c | ||
empty.cpp | ||
empty_vs6_1.cpp | ||
empty_vs6_2.cpp | ||
empty_vs6_3.cpp |