Adding enable_language(Swift) to cmake script breaks target_precompile_headers for xcode project
Hi.
We use cmake to generate project for xcode (we use last 11, 12), cmake v3.18.1. Project contains libs and executable cmakelists.txt files which added through add_subdirectory. We found that if CMakeLists contains enable_language(Swift), then no pch files will be added to project through target_precompile_headers command.
If the root CMakeLists.txt file contains enable_language(Swift), then pch files will be missed in all subprojects.
It looks like a bug and we need both enable_language and target_precompile_headers functionality.
Best regards, Vyacheslav