-
- Downloads
install: Do not crash on imported global target
Since commit e89ad0f9 (install: Allow installing targets created in another directory, 2018-06-18, v3.13.0-rc1~407^2) the `install(TARGETS)` command may find a global-scoped target outside the calling directory. Ignore an `IMPORTED GLOBAL` target if it is found in this way. Imported targets cannot be installed, and trying to do so violates internal invariants. Fixes: #19022
Showing
- Source/cmInstallCommand.cxx 5 additions, 1 deletionSource/cmInstallCommand.cxx
- Tests/RunCMake/install/RunCMakeTest.cmake 1 addition, 0 deletionsTests/RunCMake/install/RunCMakeTest.cmake
- Tests/RunCMake/install/TARGETS-ImportedGlobal-result.txt 1 addition, 0 deletionsTests/RunCMake/install/TARGETS-ImportedGlobal-result.txt
- Tests/RunCMake/install/TARGETS-ImportedGlobal-stderr.txt 4 additions, 0 deletionsTests/RunCMake/install/TARGETS-ImportedGlobal-stderr.txt
- Tests/RunCMake/install/TARGETS-ImportedGlobal.cmake 3 additions, 0 deletionsTests/RunCMake/install/TARGETS-ImportedGlobal.cmake
Please register or sign in to comment