We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b9e35 commit 66490f0Copy full SHA for 66490f0
cibuildwheel/platforms/android.py
@@ -274,11 +274,15 @@ def create_cmake_toolchain(
274
set(CMAKE_SYSTEM_VERSION 1)
275
276
# Tell CMake where to look for headers and libraries.
277
- list(INSERT CMAKE_FIND_ROOT_PATH 0 {python_dir}/prefix)
+ set(CMAKE_FIND_ROOT_PATH "{python_dir}/prefix")
278
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
279
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
280
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
281
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)
282
+
283
+ # Allow CMake to run Python in the simulated Android environment when
284
+ # policy CMP0190 is active.
285
+ set(CMAKE_CROSSCOMPILING_EMULATOR /bin/sh -c [["$0" "$@"]])
286
"""
287
),
288
file=toolchain_file,
0 commit comments