Skip to content

Commit

Permalink
Update variable names for FindPython3
Browse files Browse the repository at this point in the history
The replacement is not as drop-in as I thought.
See PR #2056.
  • Loading branch information
lmoureaux committed Nov 27, 2023
1 parent 7dc40a0 commit 9ab2dc7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/packhand_gen.h
${CMAKE_CURRENT_BINARY_DIR}/packhand_gen.cpp
COMMAND
${PYTHON_EXECUTABLE}
${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/common/generate_packets.py
"" # common/packets_gen.h
"" # common/packets_gen.c
Expand Down
4 changes: 2 additions & 2 deletions cmake/FindSphinx.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Support for sphinx-build
include(FindPackageHandleStandardArgs)

if(PythonInterp_FOUND)
get_filename_component(_PYTHON_DIR "${PYTHON_EXECUTABLE}" DIRECTORY)
if (Python3_Interpreter_FOUND)
get_filename_component(_PYTHON_DIR "${Python3_EXECUTABLE}" DIRECTORY)
set(_PYTHON_PATHS
"${_PYTHON_DIR}"
"${_PYTHON_DIR}/bin"
Expand Down
2 changes: 1 addition & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/packets_gen.h
${CMAKE_CURRENT_BINARY_DIR}/packets_gen.cpp
COMMAND
${PYTHON_EXECUTABLE}
${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/generate_packets.py
${CMAKE_CURRENT_BINARY_DIR}/packets_gen.h
${CMAKE_CURRENT_BINARY_DIR}/packets_gen.cpp
Expand Down
2 changes: 1 addition & 1 deletion server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/hand_gen.h
${CMAKE_CURRENT_BINARY_DIR}/hand_gen.cpp
COMMAND
${PYTHON_EXECUTABLE}
${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/common/generate_packets.py
"" # common/packets_gen.h
"" # common/packets_gen.c
Expand Down
2 changes: 1 addition & 1 deletion utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/specenum_gen.h
COMMAND
${PYTHON_EXECUTABLE}
${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/generate_specenum.py
${CMAKE_CURRENT_BINARY_DIR}/specenum_gen.h
VERBATIM
Expand Down

0 comments on commit 9ab2dc7

Please sign in to comment.