File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.0 )
1
+ cmake_minimum_required (VERSION 3.20 )
2
2
project (lwan C)
3
3
set (PROJECT_DESCRIPTION "Scalable, high performance, experimental web server" )
4
4
message (STATUS "Running CMake for ${PROJECT_NAME} (${PROJECT_DESCRIPTION} )" )
@@ -388,17 +388,17 @@ install(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION lib/pkgconfig
388
388
#
389
389
# Set up testsuite and benchmark targets
390
390
#
391
- find_package (PythonInterp 3 )
392
- if (LUA_FOUND AND PYTHONINTERP_FOUND )
391
+ find_package (Python3 COMPONENTS Interpreter )
392
+ if (LUA_FOUND AND Python3_Interpreter_FOUND )
393
393
add_custom_target (testsuite
394
- COMMAND ${PYTHON_EXECUTABLE }
394
+ COMMAND ${Python3_EXECUTABLE }
395
395
${PROJECT_SOURCE_DIR} /src/scripts/testsuite.py -v ${CMAKE_BINARY_DIR}
396
396
DEPENDS testrunner techempower
397
397
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
398
398
COMMENT "Running test suite." )
399
399
400
400
add_custom_target (benchmark
401
- COMMAND ${PYTHON_EXECUTABLE }
401
+ COMMAND ${Python3_EXECUTABLE }
402
402
${PROJECT_SOURCE_DIR} /src/scripts/benchmark.py
403
403
${CMAKE_BINARY_DIR} /src/bin/testrunner/testrunner
404
404
DEPENDS testrunner
You can’t perform that action at this time.
0 commit comments