dungeons-of-moria / umoria

Moria: a roguelike Dungeon Crawler game | Umoria Source Code
https://umoria.org
GNU General Public License v3.0
345 stars 74 forks source link

Simplify Cmake instructions #72

Closed h3xx closed 1 year ago

h3xx commented 1 year ago

Files without the source dir prefix are interpreted as be relative to the source dir, so there's no need to specify it every time.

Also, specify that the project is using C++ in the Cmake project() call. This negates the necessity (?) of setting the CMAKE_CXX_COMPILER variable; LANGUAGES CXX sets all that up for us, including if your OS uses a non-GCC compiler.

mrcook commented 1 year ago

Thanks @h3xx, I'll have to trust your cmake skills because mine are non-existent, but I did test this on macos/clang and it works fine. Many thanks for the update!