in my gradle build, I’m encountering the following:
:generateProjectLinuxX64Debug FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:generateProjectLinuxX64Debug’. > Command finished with non-zero exit value (1):
cmake -DDO_NOT_TREAT_WARNINGS_AS_ERRORS=ON -DDO_NOT_USE_LTO=ON -DGRADLE=true -DCMAKE_BUILD_TYPE=Debug -G Eclipse CDT4 - Unix Makefiles …/…/…
the reason this is failing is that the parameter “Eclipse CDT4 - Unix Makefiles” is not escaped, and thus the error message from cmake is:
CMake Error: Could not create named generator Eclipse
because it only interprets the first word of the -G parameter as the parameter
wonder how this can be fixed, so that the above call is made the following way:
cmake -DDO_NOT_TREAT_WARNINGS_AS_ERRORS=ON -DDO_NOT_USE_LTO=ON -DGRADLE=true -DCMAKE_BUILD_TYPE=Debug -G “Eclipse CDT4 - Unix Makefiles” …/…/…
this is on ubuntu linux 13.10 x86_64