With this cmake example
I got this error on Windows CI
0s
Run cmake --install build --config Release --prefix stagedir
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/Algo.lib
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/bin/Algo.dll
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/src/algo-interface.cppm
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/include/algo_export.h
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/my_package-targets.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/my_package-targets-release.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/./cxx-modules-my_package-targets.cmake
-- Installing: D:/a/cmake-init-modules/cmake-init-modules/stagedir/lib/cmake/my_package/./cxx-modules-my_package-targets-Release.cmake
CMake Error at build/cmake_install.cmake:152 (file):
file INSTALL cannot find
"D:/a/cmake-init-modules/cmake-init-modules/build/CMakeFiles/Export/0814a8a452340fa10b4323026df361bb/./target-Algo-Release.cmake":
File exists.
Error: Process completed with exit code 1.
The project is available at GitHub - ClausKlein/cmake-init-modules at feature/import-std-in-cmake-3-30