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