andreasfertig / programming-with-cpp20

Companion source code for "Programming with C++20 - Concepts, Coroutines, Ranges, and more"
MIT License
218 stars 64 forks source link

CMake failed #5

Open 007havegone opened 3 months ago

007havegone commented 3 months ago

When I git clone的project and execute the cmake ../ in build directory. It will get following error. env: window 11, cmake 3.29.3, compiler: vs2022 MSVC

CMake Error: Cannot open file for write: F:/Github/programming-with-cpp20/build/12.24-constexprStaticInitFiasco1/F:/Github/programming-with-cpp20/12.24-constexprStaticInitFiasco1.sln.tmp12abb CMake Error: : System Error: Invalid argument CMake Error: Cannot open file for write: F:/Github/programming-with-cpp20/build/12.25-constexprStaticInitFiasco2/F:/Github/programming-with-cpp20/12.25-constexprStaticInitFiasco2.sln.tmp8ed4f

andreasfertig commented 2 months ago

Hello @007havegone,

unfortunately, I don't have a Windows system available. A test on my macOS machine didn't show the error you reported. A quick search brought up this: https://gitlab.kitware.com/vtk/vtk/-/issues/17545

Andreas

007havegone commented 1 month ago

Hello @007havegone,

unfortunately, I don't have a Windows system available. A test on my macOS machine didn't show the error you reported. A quick search brought up this: https://gitlab.kitware.com/vtk/vtk/-/issues/17545

Andreas

I try to comment the project(${EXEC_NAME} CXX), and everything is ok. What variables should I config to this CXX variable?