mirror of
https://github.com/reactos/CMake.git
synced 2025-02-19 19:11:01 +00:00
![Brad King](/assets/img/avatar_default.png)
In commit v3.11.0-rc1~433^2~1 (Add support for IMPORTED GLOBAL targets to be aliased, 2017-09-14) we accidentally dropped the error on calling `add_library` to alias an imported target that is not globally visible. The `add_executable` command's equivalent check was properly updated. Restore the check in `add_library` with the same update. Also fix the test case accordingly. Fixes: #17982
16 lines
610 B
Plaintext
16 lines
610 B
Plaintext
^CMake Error at imported-target.cmake:[0-9]+ \(add_executable\):
|
|
add_executable cannot create ALIAS target \"alias-test-exe\" because target
|
|
\"test-exe\" is imported but not globally visible.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)
|
|
+
|
|
'alias-test-exe' does not exist![?]
|
|
*
|
|
CMake Error at imported-target.cmake:[0-9]+ \(add_library\):
|
|
add_library cannot create ALIAS target "alias-test-lib" because target
|
|
"test-lib" is imported but not globally visible.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)
|
|
+
|
|
'alias-test-lib' does not exist![?]$
|