Opened 5 years ago
Last modified 4 years ago
#1353 assigned defect/bug
Build fails if build directory path contains space characters
Reported by: | wiki.navit-project.org/index.php/user:naggety | Owned by: | http://wiki.navit-project.org/index.php/user:jkoan |
---|---|---|---|
Priority: | major | Milestone: | version 0.6.0 |
Component: | core | Version: | git master |
Severity: | normal | Keywords: | |
Cc: | http://wiki.navit-project.org/index.php/user:jkoan, wiki.navit-project.org/index.php/user:naggety |
Description
Build fails if build directory path contains space characters.
It fails in the stage of gettext generating .mo files (no such file or directory)
I think that the error is in file po/CMakeLists.txt line 82. I think that ${CMAKE_CURRENT_BINARY_DIR} should not be quoted (it is quoted twice in that line).
If the directory path contains spaces, ${CMAKE_CURRENT_BINARY_DIR} contains the directory path with the spaces escaped with backslashes. If used inside normal quotes, the backslash is printed.
Try this in bash: STR1="Hi how are you"; STR2="Hi\ how\ are\ you"; echo $STR1; echo $STR2;
Change History (4)
comment:1 Changed 5 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Owner changed from KaZeR to http://wiki.navit-project.org/index.php/user:jkoan
- Status changed from new to assigned
comment:2 Changed 5 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Milestone set to version 0.5.1
comment:3 Changed 5 years ago by wiki.navit-project.org/index.php/user:naggety
- Cc wiki.navit-project.org/index.php/user:naggety added
comment:4 Changed 4 years ago by http://wiki.navit-project.org/index.php/user:jkoan
- Milestone changed from version 0.5.1 to version 0.6.0
Ticket retargeted after milestone closed