Skip to content

CMake failed #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
007havegone opened this issue Jul 27, 2024 · 2 comments
Open

CMake failed #5

007havegone opened this issue Jul 27, 2024 · 2 comments

Comments

@007havegone
Copy link

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
Copy link
Owner

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants