Skip to content

Commit 5925c3f

Browse files
committed
Fix CMake warnings
1 parent a5d2e74 commit 5925c3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0)
1+
cmake_minimum_required(VERSION 3.20)
22
project(lwan C)
33
set(PROJECT_DESCRIPTION "Scalable, high performance, experimental web server")
44
message(STATUS "Running CMake for ${PROJECT_NAME} (${PROJECT_DESCRIPTION})")
@@ -388,17 +388,17 @@ install(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION lib/pkgconfig
388388
#
389389
# Set up testsuite and benchmark targets
390390
#
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)
393393
add_custom_target(testsuite
394-
COMMAND ${PYTHON_EXECUTABLE}
394+
COMMAND ${Python3_EXECUTABLE}
395395
${PROJECT_SOURCE_DIR}/src/scripts/testsuite.py -v ${CMAKE_BINARY_DIR}
396396
DEPENDS testrunner techempower
397397
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
398398
COMMENT "Running test suite.")
399399

400400
add_custom_target(benchmark
401-
COMMAND ${PYTHON_EXECUTABLE}
401+
COMMAND ${Python3_EXECUTABLE}
402402
${PROJECT_SOURCE_DIR}/src/scripts/benchmark.py
403403
${CMAKE_BINARY_DIR}/src/bin/testrunner/testrunner
404404
DEPENDS testrunner

0 commit comments

Comments
 (0)