Skip to content

Commit 1a47a9d

Browse files
committed
cmake: detect python location
1 parent 6ce4e40 commit 1a47a9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ IF(BUILD_LIBRARY)
194194
ENDIF()
195195

196196
IF(BUILD_TESTS)
197+
SET(Python_ADDITIONAL_VERSIONS 3 2.7)
198+
FIND_PACKAGE(PythonInterp)
199+
197200
FILE(GLOB NTLM_TEST "${PATH_TESTS}/*.c")
198201

199202
ADD_CUSTOM_COMMAND(

0 commit comments

Comments
 (0)