eclipse / paho.mqtt.rust

paho.mqtt.rust
Other
516 stars 102 forks source link

cmake build fail on Ubuntu 18.04 #137

Closed tobdub-snce closed 2 years ago

tobdub-snce commented 2 years ago
  running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--parallel" "12"

  --- stderr
  fatal: not a git repository (or any of the parent directories): .git
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_ASM_COMPILER
      CMAKE_ASM_FLAGS
      CMAKE_CXX_COMPILER
      CMAKE_CXX_FLAGS

  Unknown argument --parallel
  Unknown argument 12
  Usage: cmake --build <dir> [options] [-- [native-options]]

cmake version 3.10.2.

Seems to be caused by cmake crate 0.1.46 Pinning cmake crate to "=0.1.45" in cargo.toml solved the issue.

fpagliughi commented 2 years ago

Thanks! I will have a look.

fpagliughi commented 2 years ago

Yes, this seems to be an issue with the Rust cmake crate. v0.1.46 apparently raised the minimum CMake version up to 3.12 which is newer than what's on Ubuntu 18.04.

It seems like the suggestion to stick with the crate v0.1.45 is the best solution, at least for now.

fpagliughi commented 2 years ago

This issue appears to still be outstanding despite several updates to the cmake crate since then. For now we will just keep that crate anchored at 0.1.45.