Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18989] Windows: Unable to build a project if the project name contains a space

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-10T17:34:15.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2015-06-08T21:57:58.000+0000
Updated2015-07-07T23:22:17.000+0000

Description

Description

When building a project if the project name contains a space then the build fails with the below
[WARN]  CMake Error at CMakeLists.txt:99 (add_executable):
  The target name "space app" is reserved or not valid for certain CMake
  features, such as generator expressions, and may result in undefined
  behavior.
CMake Error at CMakeLists.txt:105 (set_target_properties):
  set_target_properties Can not find target to add properties to: space app
[WARN]  CMake Error at CMakeLists.txt:107 (target_link_libraries):
  Cannot specify link libraries for target "space app" which is not built by
  this project.
[INFO]  -- Configuring incomplete, errors occurred!
See also "C:/Users/Windo_000/AppData/Local/Temp/space app/wp.ARM/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Windo_000/AppData/Local/Temp/space app/wp.ARM/CMakeFiles/CMakeError.log".
ERROR  | ti run exited with error code 1
When building a project with a similar name to iOS and Android the build works with no problems

Steps To Reproduce

1. Create a project using ti create with a space in the name 2. Build the project for Windows using ti build -p windows -T wp-device--build-only

Actual Result

The build fails with the above

Expected Result

The build should pass

Comments

  1. Lokesh Choudhary 2015-07-07

    Verified the fix. App with space in the name builds fine. Closing. Environment: Appc Studio: 4.1.0.201507071122 Ti SDK: 4.1.0.v20150706111546 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-6 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source