programming-with-cpp20 icon indicating copy to clipboard operation
programming-with-cpp20 copied to clipboard

CMake failed

Open 007havegone opened this issue 1 year ago • 2 comments

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

007havegone avatar Jul 27 '24 18:07 007havegone

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

andreasfertig avatar Sep 03 '24 16:09 andreasfertig

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?

007havegone avatar Oct 03 '24 06:10 007havegone