mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05:00
359c500a24
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.
8 lines
150 B
CMake
8 lines
150 B
CMake
|
|
enable_language(CXX)
|
|
|
|
cmake_policy(SET CMP0111 OLD)
|
|
add_library(someimportedlib SHARED IMPORTED)
|
|
|
|
get_target_property(_loc someimportedlib LOCATION)
|