libiqrf-use-only-c-language.patch 813 B

1234567891011121314151617181920212223242526272829
  1. Use only the C language
  2. libirqf is written completely in C, but by default, CMake assumes that
  3. both C and C++ are used, and therefore verifies that a C++ compiler is
  4. installed. This may not necessarily be the case for a C-only package
  5. in Buildroot.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: b/src/CMakeLists.txt
  8. ===================================================================
  9. --- a/src/CMakeLists.txt
  10. +++ b/src/CMakeLists.txt
  11. @@ -1,5 +1,3 @@
  12. -project(iqrf)
  13. -
  14. set (iqrf_version_major 0)
  15. set (iqrf_version_minor 1)
  16. set (iqrf_version_patch 2)
  17. Index: b/CMakeLists.txt
  18. ===================================================================
  19. --- a/CMakeLists.txt
  20. +++ b/CMakeLists.txt
  21. @@ -1,3 +1,5 @@
  22. +project(iqrf C)
  23. +
  24. cmake_minimum_required(VERSION 2.8.1)
  25. enable_testing()