aevum / libgdx-cpp

A cross platform (iOS, Android, Desktop) c++ port of java's libgdx awesome framework.
Apache License 2.0
172 stars 32 forks source link

Simplify gcc version check using VERSION_LESS instead of regexp #44

Closed dmacvicar closed 8 years ago

dmacvicar commented 8 years ago

The regexp was not even working on my system. Probably because version is a simple round "6" (gcc 6).

  37s] -- Detecting CXX compile features
[   37s] -- Detecting CXX compile features - done
[   37s] Linux found. Setting the backend to LINUX
[   37s] CMake Error at CMakeLists.txt:28 (if):
[   37s]   if given arguments:
[   37s]
[   37s]     "LESS" "4" "AND" "LESS" "6"
[   37s]
[   37s]   Unknown arguments specified
scooterman commented 8 years ago

merged, thanks!