CMakeProject: Set file target with most includes
This fixes regression 65c113bc that caused files to be likely assigned to "all" target when all CMake targets were having sources residing in same directory using Ninja generator. As "all" came first then it became best match in such case. This introduces slight modification, so target with most include paths is chosen from these having best file system proximity to source file. Doing so we select likely real target and get all #include preprocessor directives resolved properly in the editor. Change-Id: Ifb85bb5954b4cf5618a6d8444c993c69ebab2259 Reviewed-by:Daniel Teske <daniel.teske@digia.com> Reviewed-by:
Stephen Kelly <steveire@gmail.com>
Loading
Please register or sign in to comment