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
CMake include error when building new project. #8687
Comments
I have been trying to reproduce this problem, but I cannot. Having spaces in folder names works perfectly fine for me. And I tried some weird shit :D Both on Linux and Windows, not a problem for me. Which makes these issues a bit difficult :P One thing in what you describe does trigger me: you talk about "rename it to". Do you mean you were trying to rename the folder OpenTTD is in, and then trying to rerun CMake in the build-folder? As there is one thing CMake doesn't take kind to, is if you change the path of the build-folder. It also prints this on the top of the screen when it detects this happened btw. Is this what was happening for you? If not, we need some more context and information next time it happens. Like the exact error when running in verbose-mode |
First of all, spaces don't seem to be the problem. It seems to be an issue with some special characters in folder names. I think I mentioned this back then when I tried using @echo off
git clone https://github.com/OpenTTD/OpenTTD.git
rename "OpenTTD" "OpenTTD - cmake error" Running that, then opening the folder with VS, generating cache with VS and then building with VS reproduces the error. I cannot build the project with
|
Yes generation failed, so includes are missing. I'll take a look |
I am seeing those My solution was to ignore the Maybe a space in the folder is a clue? I dunno .. |
Explanation for |
Version
Happens on master, and on most PRs I try out. Has happened for quite a while aswell.
Expected result
CMake should build fine after generating cache.
Actual result
CMake fails to find
..\script\ai\ai_includes.hpp
and..\script\api\game\game_includes.hpp
file.Steps to reproduce
If the folder name remains
OpenTTD
, the program will generate cache and build fine (VS 2019).If I should rename it to
OpenTTD - somethingorother
and have not generated cache or built before, it will fail asking for said files (sometimes one, sometimes both). Seems to nearly never happen with just spaces.The text was updated successfully, but these errors were encountered: