using target_sources inside of include(...) does not attach private sources to the specified target
Using target_sources(target PRIVATE ) inside of the include(...) function eventually leads to linker errors because the sources are not compiled into the named target. I have managed to narrow this down by copying the equivalent target_sources (w/ the necessary path name changes) up to the CMake file that calling include and it works just fine. If I declare the sources as target_sources(target PRIVATE ) inside the included file, it works without issue.
It seems to me that target_sources is treating the PRIVATE/PUBLIC scope differently inside of an include(...) file despite the documentation indicating that include(...) operates within the including files scope.
I am using the latest CMake 3.8.x for Windows to create "Unix Makefiles".