Skip to content
Snippets Groups Projects
Verified Commit e5937054 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

chore: better cmake warning messages

parent 8fe1bcbd
No related branches found
No related tags found
1 merge request!76QDS-14696 Beta-8 dev
Pipeline #79208 passed
...@@ -76,14 +76,14 @@ foreach(imported_target IN LISTS imported_targets) ...@@ -76,14 +76,14 @@ foreach(imported_target IN LISTS imported_targets)
# to the plugin file. That's at least usually the case for Qt qml plugins. # to the plugin file. That's at least usually the case for Qt qml plugins.
set(qmldir_path "${imported_location_dir}/qmldir") set(qmldir_path "${imported_location_dir}/qmldir")
if(NOT EXISTS "${qmldir_path}") if(NOT EXISTS "${qmldir_path}")
message(WARNING "qmldir file ${qmldir_path} does not exist.") message(WARNING "No qmldir file found for ${qml_plugin_target}.")
continue() continue()
endif() endif()
# Read qmldir file contents. # Read qmldir file contents.
file(READ "${qmldir_path}" qmldir_content) file(READ "${qmldir_path}" qmldir_content)
if(qmldir_content STREQUAL "") if(qmldir_content STREQUAL "")
message(WARNING "qmldir file ${qmldir_path} is empty.") message(WARNING "Empty qmldir for ${qml_plugin_target}.")
continue() continue()
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment