Skip to content

Commit 351b0c6

Browse files
committed
cmake: fix cross compilation
1 parent b0f00c6 commit 351b0c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ ELSE(WIN32)
6868
SET(LINK create_symlink)
6969
ENDIF(WIN32)
7070

71-
set(PYTHON_COMPONENTS Interpreter Development.Module NumPy)
71+
if(CMAKE_CROSSCOMPILING)
72+
set(PYTHON_COMPONENTS Interpreter NumPy)
73+
else()
74+
set(PYTHON_COMPONENTS Interpreter Development.Module NumPy)
75+
endif()
7276
FINDPYTHON()
7377

7478
IF(WIN32)

0 commit comments

Comments
 (0)