Fix wrong use of pkg_ui variable in CMakeLists.txt