make sure cmake defines proper hwloc versionc with cross-compilation enabled
With CMAKE_CROSSCOMPILING enabled (or if the default method of calling 'hwloc-info --version' fails), cmake falls back to inferring the hwloc version from HWLOC_API_VERSION in the header, which can be different than the actual hwloc version (see #2591) .
hwloc 2.0.2 and on will ship with a HWLOC_VERSION macro which will accurately report the actual version.
#4 Updated by Paul Bauer over 2 years ago
- Tracker changed from Bug to Task
- Subject changed from cmake can define incorrect hwloc version with cross-compilation enabled to make sure cmake defines proper hwloc versionc with cross-compilation enabled
- Target version changed from 2019 to future
- Affected version deleted (