mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
C++: Strip host suffix from package name if there's no host dependent content
This commit is contained in:
parent
6af96b1fe0
commit
9c8b0a613b
1 changed files with 7 additions and 1 deletions
|
@ -486,7 +486,13 @@ else()
|
|||
endif()
|
||||
|
||||
if (NOT Rust_CARGO_TARGET STREQUAL Rust_CARGO_HOST_TARGET)
|
||||
set(CPACK_SYSTEM_NAME "${CPACK_SYSTEM_NAME}-${Rust_CARGO_TARGET}")
|
||||
# If the package contains host dependent content (the slint-compiler), append the target suffix, otherwise
|
||||
# strip the host suffix
|
||||
if (TARGET Slint::slint-compiler)
|
||||
string(APPEND CPACK_SYSTEM_NAME "-${Rust_CARGO_TARGET}")
|
||||
else()
|
||||
set(CPACK_SYSTEM_NAME "${Rust_CARGO_TARGET}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue