File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1105,11 +1105,15 @@ namespace vix::cli::app
11051105 {
11061106 out << " # Vix runtime used by generated app glue\n " ;
11071107 out << " find_package(vix QUIET CONFIG)\n " ;
1108- out << " if(NOT vix_FOUND )\n " ;
1108+ out << " if(NOT TARGET vix::vix AND NOT TARGET Vix::vix )\n " ;
11091109 out << " find_package(Vix QUIET CONFIG)\n " ;
11101110 out << " endif()\n " ;
11111111 out << " if(TARGET vix::vix)\n " ;
11121112 out << " target_link_libraries(" << targetName << " PRIVATE vix::vix)\n " ;
1113+ out << " elseif(TARGET Vix::vix)\n " ;
1114+ out << " target_link_libraries(" << targetName << " PRIVATE Vix::vix)\n " ;
1115+ out << " else()\n " ;
1116+ out << " message(FATAL_ERROR \" No umbrella Vix target found (vix::vix or Vix::vix). Generated application glue requires the full Vix package.\" )\n " ;
11131117 out << " endif()\n\n " ;
11141118 }
11151119
You can’t perform that action at this time.
0 commit comments