mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 05:45:39 +02:00
Replace deprecated FindPythonInterp with FindPython3
fix #2755 https://cmake.org/cmake/help/v3.16/module/FindPythonInterp.html
This commit is contained in:

committed by
Chris Thrasher

parent
ac207fc90f
commit
334827eb53
@@ -79,8 +79,8 @@ add_subdirectory(src)
|
||||
|
||||
# Build tests only if requested
|
||||
if(BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT)
|
||||
find_package(PythonInterp 3 REQUIRED)
|
||||
if(NOT PYTHONINTERP_FOUND)
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||
if(NOT TARGET Python3::Interpreter)
|
||||
message(FATAL_ERROR "Python not found, but required for tests")
|
||||
endif()
|
||||
set(CMAKE_FOLDER "tests")
|
||||
|
Reference in New Issue
Block a user