cmake: fix tests generator
find_package(PythonInterp) needs to be called before the tests.
This commit is contained in:
parent
6335509727
commit
7fb4edccdc
|
@ -997,6 +997,7 @@ endif()
|
||||||
add_subdirectory(contrib)
|
add_subdirectory(contrib)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
find_package(PythonInterp)
|
||||||
if(BUILD_TESTS)
|
if(BUILD_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1032,5 +1033,3 @@ option(INSTALL_VENDORED_LIBUNBOUND "Install libunbound binary built from source
|
||||||
|
|
||||||
|
|
||||||
CHECK_C_COMPILER_FLAG(-std=c11 HAVE_C11)
|
CHECK_C_COMPILER_FLAG(-std=c11 HAVE_C11)
|
||||||
|
|
||||||
find_package(PythonInterp)
|
|
||||||
|
|
Loading…
Reference in New Issue