mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
The `FRAMEWORK` target property affects the way the `install()` command
treats the target and so should be set first. Our implementation
assumed that this was always the case and led to an assertion failure.
Prior to CMake 3.12 this was visible only when using an explicit
`LIBRARY ... NAMELINK_ONLY` option, but commit 0212d7c762 (install: add
NAMELINK_COMPONENT argument, 2018-04-18, v3.12.0-rc1~139^2~3) made
it possible with a simple `LIBRARY DESTINATION`.
Fully supporting out-of-order specification will require non-trivial
refactoring to defer install generator creation to generate time.
For now simply restore the old behavior of installing the framework
to the library destination and warn about the case.
Fixes: #18848
8 lines
377 B
Plaintext
8 lines
377 B
Plaintext
^CMake Warning \(dev\) at InstallBeforeFramework.cmake:4 \(install\):
|
|
Target 'foo' was changed to a FRAMEWORK sometime after install\(\). This may
|
|
result in the wrong install DESTINATION. Set the FRAMEWORK property
|
|
earlier.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|