|
From: Tobias D. <tda...@gm...> - 2019-04-25 15:05:57
|
On Wed, Mar 06, 2019 at 09:27:01AM +0100, Lars Toenning wrote: > Hi all, > > as mentioned some time ago I have now finished the connection module to > swift (WIP VATSIM client) and created merge requests: Awesome! I just tried enabling it on FG next, but unfortunately, CMake fails with this message: > CMake Error at src/Main/CMakeLists.txt:80 (add_executable): > Cannot find source file: > > /home/tobias/src/flightgear/src/Network/Swift/swiftaircraft.cpp > > Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp > .hxx .in .txx Further digging reveals that this file is indeed missing; /home/tobias/src/flightgear/src/Network/Swift/SwiftAircraft.cpp however exists. And indeed, in src/Network/Swift/CMakeLists.txt, it says "swiftaircraft.cpp", not "SwiftAircraft.cpp". I suspect that on a case-insensitive filesystem (Windows?), this would work fine, but on Linux, it won't. Changing CMakeLists to uppercase SwiftAircraft (both .cpp and .hpp) works. I presume changing the filenames might also work, but considering #includes, that would probably be a more intrusive change. |