Some parameters (like "${CMAKE_BINARY_DIR}/lib" and "${CMAKE_SOURCE_DIR}/Foundation/src") are passed to CMake commands in your build scripts without enclosing them by quotation marks. I see that these places will result in build difficulties if the contents of the used variables will contain special characters like spaces.
I would recommend to apply advices from a Wiki article.