File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ impl Interface {
107
107
/// Export the manifest for this crate so that is can be used by downstream
108
108
/// crates or CMake
109
109
pub fn export ( mut self ) {
110
+ // TODO: somewhere we need to detect this correctly
111
+ if self . manifest . link_name . is_empty ( ) {
112
+ panic ! ( "The links key must be set when exporting" ) ;
113
+ }
114
+
110
115
self . write_exported_include_directories ( ) ;
111
116
112
117
// We automatically reexport all qt_modules and downstream dependencies
Original file line number Diff line number Diff line change @@ -1123,8 +1123,7 @@ extern "C" bool {init_fun}() {{
1123
1123
Interface {
1124
1124
manifest : Manifest {
1125
1125
name : crate_name ( ) ,
1126
- link_name : link_name ( )
1127
- . expect ( "The links key must be set when creating a library with CXX-Qt-build!" ) ,
1126
+ link_name : link_name ( ) . unwrap_or_default ( ) ,
1128
1127
initializers : vec ! [ public_initializer. strip_file( ) ] ,
1129
1128
qt_modules : qt_modules. into_iter ( ) . collect ( ) ,
1130
1129
exported_include_prefixes : vec ! [ ] ,
You can’t perform that action at this time.
0 commit comments