Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find modules have issues with paths containing spaces #95

Open
snaulX opened this issue Jan 30, 2021 · 5 comments
Open

Find modules have issues with paths containing spaces #95

snaulX opened this issue Jan 30, 2021 · 5 comments
Milestone

Comments

@snaulX
Copy link

snaulX commented Jan 30, 2021

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?

@mosra
Copy link
Owner

mosra commented Jan 30, 2021

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 mosra added this to the 2020.0b milestone Jan 30, 2021
@snaulX
Copy link
Author

snaulX commented Jan 30, 2021

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

@mosra
Copy link
Owner

mosra commented Jan 31, 2021

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 ;)

@snaulX
Copy link
Author

snaulX commented Feb 1, 2021

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 snaulX closed this as completed Feb 1, 2021
@mosra
Copy link
Owner

mosra commented Feb 1, 2021

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

And subscribing to the project, haha 👀

@mosra mosra reopened this Feb 1, 2021
@mosra mosra changed the title CMakeLists.txt error at line 34 Find modules have issues with paths containing spaces Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants