mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Improve cmake diagnostics
Print a feature summary. This also helps diagnose CI builds.
This commit is contained in:
parent
3358841ab0
commit
0e191caf78
2 changed files with 10 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(SixtyFPS LANGUAGES CXX)
|
||||
|
||||
include(FeatureSummary)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
include(FetchContent)
|
||||
|
@ -72,6 +73,7 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.19.0)
|
|||
list(APPEND features ${cargo-feature})
|
||||
endif()
|
||||
set(features "${features}" PARENT_SCOPE)
|
||||
add_feature_info(${cmake_option} ${cmake_option} ${description})
|
||||
endfunction()
|
||||
|
||||
function(define_cargo_dependent_feature cargo-feature description default depends_condition)
|
||||
|
@ -84,6 +86,7 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.19.0)
|
|||
list(APPEND features ${cargo-feature})
|
||||
endif()
|
||||
set(features "${features}" PARENT_SCOPE)
|
||||
add_feature_info(${cmake_option} ${cmake_option} ${description})
|
||||
endfunction()
|
||||
|
||||
# Features that are mapped to features in the Rust crate. These and their
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue