0004-CMake-reorder-Python-detection.patch 951 B

1234567891011121314151617181920212223242526272829303132
  1. From 640c2b3c0c72d5194d422ff7dda086c4533fba00 Mon Sep 17 00:00:00 2001
  2. From: Yegor Yefremov <yegorslists@googlemail.com>
  3. Date: Mon, 13 Jan 2020 14:08:44 +0100
  4. Subject: [PATCH] CMake: reorder Python detection
  5. PythonInterp should be detected before PythonLibs otherwise
  6. CMake exits with the following message:
  7. Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  8. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
  9. ---
  10. python/CMakeLists.txt | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
  13. index 90811ca..368bb7e 100644
  14. --- a/python/CMakeLists.txt
  15. +++ b/python/CMakeLists.txt
  16. @@ -12,8 +12,8 @@ if ( PYTHON_BINDINGS )
  17. set ( SWIG_FOUND TRUE )
  18. endif ()
  19. endif ()
  20. - find_package ( PythonLibs )
  21. find_package ( PythonInterp )
  22. + find_package ( PythonLibs )
  23. endif ()
  24. if ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND )
  25. --
  26. 2.17.0