mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
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.
6 lines
238 B
Plaintext
6 lines
238 B
Plaintext
^CMake Error at SubDirTarget.cmake:[0-9]+ \(target_link_libraries\):
|
|
Attempt to add link library "m" to target "subexe" which is not built in
|
|
this directory.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)$
|