libwebsockets-0001-cmake-set-the-project-language.patch 1000 B

12345678910111213141516171819202122232425262728293031323334
  1. From 6ab441e0509a9fda179fd1febf73d0f9fae321d6 Mon Sep 17 00:00:00 2001
  2. From: Samuel Martin <s.martin49@gmail.com>
  3. Date: Fri, 2 May 2014 14:24:58 +0200
  4. Subject: [PATCH] cmake: set the project language
  5. By default, CMake sets C and C++ as languages used by the project.
  6. This makes the configuration failed if no C++ compiler is found.
  7. Since libwesockets in written in pure C, no C++, there is no reason to
  8. disable it when the toolchain has no C++ support.
  9. This patch just make the CMake code reflecting the real status of the
  10. project with regard to the languages used.
  11. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  12. ---
  13. CMakeLists.txt | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/CMakeLists.txt b/CMakeLists.txt
  16. index f1b6ace..72391b0 100644
  17. --- a/CMakeLists.txt
  18. +++ b/CMakeLists.txt
  19. @@ -1,6 +1,6 @@
  20. cmake_minimum_required(VERSION 2.6)
  21. -project(libwebsockets)
  22. +project(libwebsockets C)
  23. set(PACKAGE "libwebsockets")
  24. set(CPACK_PACKAGE_NAME "${PACKAGE}")
  25. --
  26. 1.9.2