summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Graphviz
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-08-08 10:17:05 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-21 12:38:39 (GMT)
commit359c500a2466ffc2507b81c0089bce18fd5debbb (patch)
treee8eba9aa91e55b068a9b92989813a3db131befd5 /Tests/RunCMake/Graphviz
parent692bc2de9475d14a2f40b94d88ea91db2df5311c (diff)
downloadCMake-359c500a2466ffc2507b81c0089bce18fd5debbb.zip
CMake-359c500a2466ffc2507b81c0089bce18fd5debbb.tar.gz
CMake-359c500a2466ffc2507b81c0089bce18fd5debbb.tar.bz2
cmTarget: Raise error if imported target location is not set
Previously we would synthesize <TARGET_NAME>-NOTFOUND as the location. This would then end up on the link line and cause build failures. Policy CMP0110 is added to control this behaviour. Fixes #19080, #19943.
Diffstat (limited to 'Tests/RunCMake/Graphviz')
-rw-r--r--Tests/RunCMake/Graphviz/GraphvizTestProject.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/Graphviz/GraphvizTestProject.cmake b/Tests/RunCMake/Graphviz/GraphvizTestProject.cmake
index 8a628cf..2c7d5bf 100644
--- a/Tests/RunCMake/Graphviz/GraphvizTestProject.cmake
+++ b/Tests/RunCMake/Graphviz/GraphvizTestProject.cmake
@@ -60,6 +60,7 @@ target_link_libraries(ConsoleApplication CoreLibrary)
# No one will ever notice...
add_library(CryptoCurrencyMiningLibrary UNKNOWN IMPORTED)
+set_target_properties(CryptoCurrencyMiningLibrary PROPERTIES IMPORTED_LOCATION "cryptomining${CMAKE_STATIC_LIBRARY_SUFFIX}")
target_link_libraries(ConsoleApplication CryptoCurrencyMiningLibrary)
add_custom_target(GenerateManPage COMMAND ${CMAKE_COMMAND} --version)