Bug 443337 - binary with space is bugged on linux host
Summary: binary with space is bugged on linux host
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (show other bugs)
Version: 1.3.0
Platform: Archlinux Linux
: NOR normal
Target Milestone: ---
Assignee: Milian Wolff
Depends on:
Reported: 2021-10-05 07:26 UTC by bartus
Modified: 2021-10-31 16:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
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:

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