Skip to content

Commit a0b8f70

Browse files
jamiesnapewjakob
authored andcommitted
Ensure PythonLibsNew_FOUND is set in FindPythonLibsNew module (#1373)
Since the module is named FindPythonLibsNew, PythonLibsNew_FOUND should be set appropriately.
1 parent b3f0b4d commit a0b8f70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/FindPythonLibsNew.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ endif()
6464

6565
if(NOT PYTHONINTERP_FOUND)
6666
set(PYTHONLIBS_FOUND FALSE)
67+
set(PythonLibsNew_FOUND FALSE)
6768
return()
6869
endif()
6970

@@ -96,6 +97,7 @@ if(NOT _PYTHON_SUCCESS MATCHES 0)
9697
"Python config failure:\n${_PYTHON_ERROR_VALUE}")
9798
endif()
9899
set(PYTHONLIBS_FOUND FALSE)
100+
set(PythonLibsNew_FOUND FALSE)
99101
return()
100102
endif()
101103

@@ -127,6 +129,7 @@ if(CMAKE_SIZEOF_VOID_P AND (NOT "${PYTHON_SIZEOF_VOID_P}" STREQUAL "${CMAKE_SIZE
127129
"chosen compiler is ${_CMAKE_BITS}-bit")
128130
endif()
129131
set(PYTHONLIBS_FOUND FALSE)
132+
set(PythonLibsNew_FOUND FALSE)
130133
return()
131134
endif()
132135

@@ -196,3 +199,4 @@ find_package_message(PYTHON
196199
"${PYTHON_EXECUTABLE}${PYTHON_VERSION}")
197200

198201
set(PYTHONLIBS_FOUND TRUE)
202+
set(PythonLibsNew_FOUND TRUE)

0 commit comments

Comments
 (0)