0001-only-c-language.patch 704 B

123456789101112131415161718192021
  1. ympd is implemented only in C
  2. By default, CMake assumes that the project is using both C and C++. By
  3. explicitly passing 'C' as argument of the project() macro, we tell
  4. CMake that only C is used, which prevents CMake from checking if a C++
  5. compiler exists.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: b/CMakeLists.txt
  8. ===================================================================
  9. --- a/CMakeLists.txt
  10. +++ b/CMakeLists.txt
  11. @@ -1,6 +1,6 @@
  12. cmake_minimum_required(VERSION 2.6)
  13. -project (ympd)
  14. +project (ympd C)
  15. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
  16. set(CPACK_PACKAGE_VERSION_MAJOR "1")
  17. set(CPACK_PACKAGE_VERSION_MINOR "2")