Bug 443337

Summary: binary with space is bugged on linux host
Product: [Applications] Heaptrack Reporter: bartus <szczepaniak.bartek+bugs.kde>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description bartus 2021-10-05 07:26:19 UTC
Why building test, the `binary with spaces` fails with cmake error:

tests/manual/with space/CMakeFiles/my binary.dir/build.make:87: *** missing separator. Stop.

```
The problem originates in the binary name `my binary` with leads to space being interpreted by `make` as separator instead of character in target name.
```

excerpt form `my binary.dir/build.make:87`

```
# Object files for target my_binary                                                                                                                                        my_binary_OBJECTS = \                                                                                                                                                      "CMakeFiles/my_binary.dir/my_binary.cpp.o"
```

Changing the name to `my_binary` in tests/manual/with\ space/CMakeLists.txt` resolves the issue:

https://github.com/KDE/heaptrack/blob/3e7405e6b83ea79bfaa7a1135d2cede2021394ae/tests/manual/with%20space/CMakeLists.txt#L1
Comment 1 bartus 2021-10-05 07:30:30 UTC
Sorry for misspell, also excerpt from `my binary.dir/build.make` contains already altered target name `my_binary` originally there's `my binary` there.
Comment 2 bartus 2021-10-06 08:17:38 UTC
The issue occurs only with `GNU make` backend, `Ninja` works fine.
Comment 3 Milian Wolff 2021-10-31 16:31:31 UTC
this was fixed in the meantime