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

Cmake failure on directory with forward slash ("\") in name #18

Closed
cgzr opened this issue Jan 7, 2019 · 4 comments
Closed

Cmake failure on directory with forward slash ("\") in name #18

cgzr opened this issue Jan 7, 2019 · 4 comments

Comments

@cgzr
Copy link

cgzr commented Jan 7, 2019

System:
OS - Ubuntu 16.04 LTS

Steps to replicate this issue:

mkdir "dir\fail"
cd "dir\fail"
git clone https://github.com/y-256/libdivsufsort.git
cd libdivsufsort/
mkdir build
cd build
cmake ..
CMake Error: The source directory "/tmp/dir/fail/libdivsufsort" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
@kloetzl
Copy link
Contributor

kloetzl commented Jan 7, 2019

Even though I can reproduce the error, it also happens with other cmake projects. Are you sure this is specific to libdivsufsort and not a quirks of cmake in general?

@cgzr
Copy link
Author

cgzr commented Jan 7, 2019

No, I am not, could be a cmake issue. Feel free to close

@kloetzl
Copy link
Contributor

kloetzl commented Jan 7, 2019

I took another look and found a simpler case:

$ mkdir dir\\fail
$ cmake --open dir\\fail
Error: /tmp/dir/fail is not a directory

So this really is a cmake issue. For some reason it converts the \ to a /. Unfortunately, I do not have the permissions to close this issue. Would you be so kind as to do that?

cmake has a separate bug tracker. Do you want to file a new issue there?

Btw, thanks for reporting!

@cgzr
Copy link
Author

cgzr commented Jan 8, 2019

Thank you, for your expertise and shared link (I was unable to find that cmake page during a brief search yesterday).

@cgzr cgzr closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants