ExternalProject: "property contains path ... which is prefixed in the source directory" if ExternalProject_Add installs in source subdirectory
I have a project that have external dependencies with ExternalProject_Add
in path /src
.
I build it with success under path /build
If I try to build in folder /src/build
, I have property contains path ... which is prefixed in the source directory
error message.
I took a look at https://gitlab.kitware.com/cmake/cmake/-/blob/830eed374d540ebd643cd9385546838804c07160/Source/cmExportFileGenerator.cxx#L216 and I think the line should be const bool inSourceBuild = isSubDirectory(topBinaryDir, topSourceDir);
What do you think ? Should I create a MR ? Or did I missed something ?
Edited by LE GARREC Vincent