0003-CMakeLists.txt-Don-t-require-a-C-compiler.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 786ddcd1475adc6193c59d53e0d8ed2c502f2b00 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Sat, 23 Sep 2017 18:49:31 +0200
  4. Subject: [PATCH] CMakeLists.txt: Don't require a C++ compiler
  5. By default, CMake assumes that the project is using both C and C++. By
  6. explicitly passing 'C' as argument of the project() macro, we tell CMake
  7. that only C is used, which prevents CMake from erroring out if a C++
  8. compiler doesn't exist.
  9. Submitted upstream:
  10. https://github.com/uclouvain/openjpeg/pull/1027
  11. Signed-off-by: Peter Korsgaard <peter@korsgaard.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 ec42bc99..d80eb48b 100644
  17. --- a/CMakeLists.txt
  18. +++ b/CMakeLists.txt
  19. @@ -24,7 +24,7 @@ endif()
  20. #string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME)
  21. set(OPENJPEG_LIBRARY_NAME openjp2)
  22. -project(${OPENJPEG_NAMESPACE})
  23. +project(${OPENJPEG_NAMESPACE} C)
  24. # Do full dependency headers.
  25. include_regular_expression("^.*$")
  26. --
  27. 2.11.0