mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Previously, `install(TARGETS)` would only accept targets created in the same directory scope. Relax this restriction by searching the global scope when determining whether or not a target exists. Fixes: #14444
5 lines
138 B
CMake
5 lines
138 B
CMake
enable_language(C)
|
|
add_executable(myexe main.c)
|
|
add_subdirectory(TARGETS-InstallFromSubDir)
|
|
install(TARGETS myexe subexe DESTINATION bin)
|