mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Fix invalid CMake package config files when using different build types
As we try to copy the different location target properties from the corrosion target into the package config file, we need to take all the usual build types into account, not only Debug/Release. Especially RelWithDebInfo is popular among packagers.
This commit is contained in:
parent
23708a4a12
commit
9784415a7e
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ install(PROGRAMS $<TARGET_FILE:sixtyfps-compiler> TYPE BIN)
|
|||
set(SIXTYFPS_LIB_PROPERTIES "")
|
||||
foreach(prop
|
||||
IMPORTED_LOCATION IMPORTED_LOCATION_DEBUG IMPORTED_LOCATION_RELEASE
|
||||
IMPORTED_LOCATION_RELWITHDEBINFO IMPORTED_LOCATION_MINSIZEREL
|
||||
IMPORTED_IMPLIB IMPORTED_IMPLIB_DEBUG IMPORTED_IMPLIB_RELEASE)
|
||||
get_target_property(value sixtyfps-cpp-shared ${prop})
|
||||
if(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue