CMake include error when building new project. #8687
Happens on master, and on most PRs I try out. Has happened for quite a while aswell.
CMake should build fine after generating cache.
CMake fails to find
Steps to reproduce
git clone https://github.com/OpenTTD/OpenTTD.git
If the folder name remains
The text was updated successfully, but these errors were encountered:
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
I am seeing those
My solution was to ignore the
Maybe a space in the folder is a clue? I dunno ..