cxxmodules: fails with extra ./ in path using Ninja and CMake 3.28
Ninja version: 1.11.1
CMake version: 3.28.20240118-gbef9f09
Clang version: 17
and 18
(git)
https://gitlab.kitware.com/theoparis/cxx-modules-issue
Error:
CMake Error in CMakeLists.txt:
Target "reproduction" has source file
/home/theo/repro/./src/module.cpp
in a "FILE_SET TYPE CXX_MODULES" but it is not scheduled for compilation.
I realized after making the repository that export module module
is not the best naming-wise and that I should've used add_executable. I was following this post on kitware.com by the way.
Edited by Theo Paris