ContinuumIO / libhdfs3-downstream

a native c/c++ hdfs client (downstream fork from apache-hawq)
Apache License 2.0
40 stars 54 forks source link

Fix for gcc 7 version detection #11

Closed sk1p closed 6 years ago

sk1p commented 6 years ago

The error message was:

CMake Error at CMake/Platform.cmake:19 (LIST):
  LIST index: 1 out of range (-1, 0)
Call Stack (most recent call first):
  CMakeLists.txt:14 (INCLUDE)

This was caused by gcc-7 -dumpversion only returning the major version. Now the cmake internal version variable is used which should work for both old and new gcc versions.