Skip to content

Commit 5149442

Browse files
committed
Find the PythonLibs first.
This is technically the wrong order, but we need to do the "wrong order" because otherwise FindPythonInterp will look for the system Python, which may not be present.
1 parent c7f694a commit 5149442

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/test_ports/vcpkg-ci-python3/project/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ endif()
1212

1313
# The purpose of this test is to ensure that we get the expected values
1414
# from the finders, not crosscompiling. So, let's not even go there.
15+
find_package(PythonLibs REQUIRED)
1516
if(NOT CMAKE_CROSSCOMPILING)
1617
find_package(PythonInterp REQUIRED)
1718
endif()
18-
find_package(PythonLibs REQUIRED)
1919

2020
# The old find modules should NOT be prefixed.
2121
if(DEFINED PYTHON_MEOW_LIBRARIES OR DEFINED PYTHON_MEOW_EXECUTABLE)

0 commit comments

Comments
 (0)