Skip to content

Commit 52b803f

Browse files
sidneyevpobr
authored andcommitted
Update for cmake 4
1 parent ea9ff56 commit 52b803f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required (VERSION 3.12...3.26)
1+
cmake_minimum_required (VERSION 3.5...4.0)
22

33
# MSVC runtime library flags are selected by an abstraction, CMake >= 3.15
44
# This policy still need to be set even with cmake_minimum_required() command above.
@@ -483,7 +483,7 @@ if (BUILD_SHARED_LIBS)
483483
if (DEFINED SYMBOL_OS)
484484
add_custom_command (
485485
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/src/${SYMBOL_FILENAME}
486-
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/src/create_symbols_file.py ${SYMBOL_OS} ${SNDFILE_ABI_VERSION} > ${CMAKE_CURRENT_BINARY_DIR}/src/${SYMBOL_FILENAME}
486+
COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/src/create_symbols_file.py ${SYMBOL_OS} ${SNDFILE_ABI_VERSION} > ${CMAKE_CURRENT_BINARY_DIR}/src/${SYMBOL_FILENAME}
487487
COMMENT "Generating ${SYMBOL_FILENAME}..."
488488
)
489489

cmake/SndFileChecks.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,5 @@ if (DEFINED ENABLE_STATIC_RUNTIME)
249249
endif ()
250250

251251
if (BUILD_SHARED_LIBS)
252-
find_package (PythonInterp REQUIRED)
252+
find_package (Python REQUIRED)
253253
endif()

0 commit comments

Comments
 (0)