Files
ortools-clone/patches/pybind11.patch
Corentin Le Molgat 49aceccc93 cmake: Add pybind11 patch
* Add fatal error is wrong python interpreter is picked by pybind11
2023-07-26 14:31:16 +02:00

13 lines
411 B
Diff

diff --git a/tools/pybind11NewTools.cmake b/tools/pybind11NewTools.cmake
index 7d7424a7..c007fb01 100644
--- a/tools/pybind11NewTools.cmake
+++ b/tools/pybind11NewTools.cmake
@@ -23,6 +23,7 @@ else()
endif()
if(NOT Python_FOUND AND NOT Python3_FOUND)
+ message(FATAL_ERROR "Should not pass here")
if(NOT DEFINED Python_FIND_IMPLEMENTATIONS)
set(Python_FIND_IMPLEMENTATIONS CPython PyPy)
endif()