magnum-plugins icon indicating copy to clipboard operation
magnum-plugins copied to clipboard

Find modules have issues with paths containing spaces

Open snaulX opened this issue 4 years ago • 5 comments

CMake Error at magnum-plugins/modules/FindMagnum.cmake:328 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): magnum-plugins/CMakeLists.txt:34 (find_package)

What was must importing from Magnum in CMakeLists? And how to fix it?

snaulX avatar Jan 30 '21 15:01 snaulX

Interesting, this is the first time I see such error.

Where do have Magnum installed? Can you upload the CMakeCache.txt file from the build dir?

mosra avatar Jan 30 '21 15:01 mosra

Interesting, this is the first time I see such error.

Where do have Magnum installed? Can you upload the CMakeCache.txt file from the build dir?

https://pastebin.com/Ur1E9VUF - CMakeCache.txt

snaulX avatar Jan 30 '21 15:01 snaulX

Ah, spaces in the path :)

I'll see what all places need to be fixed to make this work. Quick workaround is to not have directory names with spaces ;)

mosra avatar Jan 31 '21 11:01 mosra

I restructured project (https://github.com/world-of-legends/Alpha_Engine/tree/main/magnum) and now all works. But if someone has same issue just reopen this issue.

snaulX avatar Feb 01 '21 15:02 snaulX

Yeah I plan on fixing this, when I get the time. So keeping it open :)

And subscribing to the project, haha :eyes:

mosra avatar Feb 01 '21 15:02 mosra