Post-build fail due to cmake wildcard support

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

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.

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

1 Like