install(EXPORT): Error at generate time does not prevent "Generating done"
Cmake xcode generator does not produce the xcodeproj file, but says that the generating is done and prints the path to the directory. Generating unix makefiles, or other generators on other operating systems works fine.
Code to reproduce the issue is available at: https://github.com/malytomas/cmake-issue (includes build instructions).
This https://github.com/curl/curl/commit/fc0672b447e01595fa745a26452240918fb262ce is the first commit (in the curl repository) to make the issue appear, however, I think that the issue is actually in the cmake, not curl. Note that I am talking here about curl that is used in the example repository as a submodule, not about the usage of curl in cmake itself.
I have confirmed the issue with cmake versions 3.12.1, 3.12.4 and cmake build from commit 44a5400d (current master at the time of writing).
sw_vers: ProductName: Mac OS X ProductVersion: 10.13.6 BuildVersion: 17G65 xcodebuild -version: Xcode 9.4.1 Build version 9F2000