[CMake] Experiments in CMake support for Clang (header & standard) modules

Stephen Kelly steveire at gmail.com
Mon Apr 30 19:37:57 EDT 2018


On 04/30/2018 11:30 PM, Stephen Kelly wrote:
> Interestingly, GCC is taking a directory-centric approach in the
> driver (-fmodule-path=<dir>) as opposed to the 'add a file to your
> compile line for each import' that Clang and MSVC are taking:
>
>  http://gcc.gnu.org/wiki/cxx-modules
>
> Why is Clang not doing a directory-centric driver-interface? It seems
> to obviously solve problems. 

I just discovered `-fprebuilt-module-path=`. I'm glad it exists (is it
'new'?), but why don't you just use the -I paths?

Thanks,

Steve.



More information about the CMake mailing list