Skip to content

Commit c367c22

Browse files
authored
Merge pull request #293 from jcarpent/devel
Fix cross compilation
2 parents b0f00c6 + bad0cc7 commit c367c22

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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)

cmake

0 commit comments

Comments
 (0)