0002-CMakeLists-do-not-require-C.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 5732174debfe027f7620af55c283060201f0ad03 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Thu, 2 Nov 2017 22:54:51 +0100
  4. Subject: [PATCH] CMakeLists: do not require C++
  5. The project doesn't use C++, so don't let CMake check for a C++
  6. compiler by explicitly specifying that this is a C-only project.
  7. Submitted-upstream: https://github.com/Tangent128/luasdl2/pull/69
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. ---
  10. common/CMakeLists.txt | 2 +-
  11. examples/CMakeLists.txt | 2 +-
  12. tutorials/CMakeLists.txt | 2 +-
  13. 3 files changed, 3 insertions(+), 3 deletions(-)
  14. diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
  15. index 9e19709..8cfb748 100644
  16. --- a/common/CMakeLists.txt
  17. +++ b/common/CMakeLists.txt
  18. @@ -15,7 +15,7 @@
  19. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  20. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21. -project(common)
  22. +project(common C)
  23. set(
  24. SOURCES
  25. diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
  26. index 572b3b7..4e3af4d 100644
  27. --- a/examples/CMakeLists.txt
  28. +++ b/examples/CMakeLists.txt
  29. @@ -16,7 +16,7 @@
  30. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  31. #
  32. -project(examples)
  33. +project(examples C)
  34. # Option to enable / disable examples installation
  35. option(WITH_DOCS "Installation of documentation and examples" On)
  36. diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt
  37. index adefbc9..6ec069e 100644
  38. --- a/tutorials/CMakeLists.txt
  39. +++ b/tutorials/CMakeLists.txt
  40. @@ -16,7 +16,7 @@
  41. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  42. #
  43. -project(tutorials)
  44. +project(tutorials C)
  45. # Option to enable / disable examples installation
  46. option(WITH_DOCS "Installation of tutorials" On)
  47. --
  48. 2.13.6