# Post-build fail due to cmake wildcard support

**URL:** <https://dev.unawatch.com/t/post-build-fail-due-to-cmake-wildcard-support/121>\
**Category:** Building with UNA\
**Created:** [October 16, 2026, 5:32pm UTC](https://dev.unawatch.com/t/post-build-fail-due-to-cmake-wildcard-support/121 "2026-10-16T17:32:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpro1](https://yyz2.discourse-cdn.com/flex048/user_avatar/dev.unawatch.com/gpro1/32/100_2.png) [@gpro1](https://dev.unawatch.com/u/gpro1)\
**Post date:** [October 16, 2026, 5:32pm UTC](https://dev.unawatch.com/t/post-build-fail-due-to-cmake-wildcard-support/121/1 "2026-10-16T17:32:55Z")

</div>

Is anyone having this error at the end of a build?

```bash
INFO:root:Image : D:\Gregory\Projects\una_watch\MyAlarm\build\Alarm_1.0.0.uapp (216924 bytes)

Error copying file "D:/Gregory/Projects/una_watch/MyAlarm/build/*.uapp" to "D:/Gregory/Projects/una_watch/MyAlarm/Software/Apps/Alarm-CMake/../../../Output/": Invalid argument
make[2]: *** [CMakeFiles/AlarmApp.dir/build.make:73: CMakeFiles/AlarmApp] Error 1
make[1]: *** [CMakeFiles/Makefile2:158: CMakeFiles/AlarmApp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

```

From my understanding its because the output copy command contains a wildcard which is not supported by cmake.

---

<div class="post-metadata">

**Author:** ![Ross\_UNA](https://yyz2.discourse-cdn.com/flex048/user_avatar/dev.unawatch.com/ross_una/32/18_2.png) [@Ross\_UNA](https://dev.unawatch.com/u/Ross_UNA)\
**Post date:** [October 19, 2026, 12:04pm UTC](https://dev.unawatch.com/t/post-build-fail-due-to-cmake-wildcard-support/121/2 "2026-10-19T12:04:25Z")

</div>

Hi,

Sorry about this. I’ve just merged a fix for it here: [fix(cmake): copy the .uapp to OUTPUT\_PATH without a wildcard by rryles · Pull Request #363 · UNAWatch/una-sdk · GitHub](https://github.com/UNAWatch/una-sdk/pull/363)
