Opened 2 weeks ago

Last modified 2 weeks 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:
Component: core Version: git master
Severity: normal Keywords:
Cc: http://wiki.navit-project.org/index.php/user:jkoan

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 (1)

comment:1 Changed 2 weeks 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
Note: See TracTickets for help on using tickets.