target_include_directories and BUILD_INTERFACE prepends current directory
I am trying to modernize my CMAKE knowledge and ran into an issue that others have fixed with quoting that did not work here. I like to include a headers.cmake and sources.cmake to keep the sometimes long lists of files out of my cmake. I also use ${PROJECT_NAME} liberally. When I hit the new style target_include_directories the BUILD_INTERFACE generator ends up prepending the current path. given. This may be a VS2019 generator issue(community) as I am just migrating to that also. In vs the properties show the include directory "C:\Projects\MTCNN_TensorRT\NvCodec\NvDecoder\C:\Projects\MTCNN_TensorRT\NvCodec\NvDecoder\include_6" The underscore 6 is just a tag to show me which line is being created in Visual Studio ProjectConfig.cmake
Is the substitution in generator expressions the same or less sophisticated than other cmake? the {
{PROJECT_NAME}_PUBLIC_INCLUDE_DIR} throwing it off?