CMake Error in CMakeLists.txt: Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains relative path: "include/\$" CMake Error in CMakeLists.txt: Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains path: ".*/Tests/RunCMake/CMP0041/include/\$" which is prefixed in the source directory. CMake Error in CMakeLists.txt: Target "foo" INTERFACE_INCLUDE_DIRECTORIES property contains path: ".*/Tests/RunCMake/CMP0041/CMP0041-NEW-build/include/\$" which is prefixed in the build directory.