Skip to content

Commit

Permalink
Use always Python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 30, 2025
1 parent 50c27f2 commit 3f53257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/tests/metacall_node_port_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ add_dependencies(${target}
set(NodeJS_EXECUTABLE_ONLY ON)

find_package(NodeJS)
find_package(Python COMPONENTS Interpreter)
find_package(Python3 COMPONENTS Interpreter)

if(NodeJS_FOUND AND Python_Interpreter_FOUND)
if(NodeJS_FOUND AND Python3_Interpreter_FOUND)
execute_process(
COMMAND ${NodeJS_EXECUTABLE} -e "console.log(process.versions.openssl)"
OUTPUT_VARIABLE NODEJS_OPENSSL_VERSION
)
execute_process(
COMMAND ${Python_EXECUTABLE} -c "import ssl; print(ssl.OPENSSL_VERSION.split()[1])"
COMMAND ${Python3_EXECUTABLE} -c "import ssl; print(ssl.OPENSSL_VERSION.split()[1])"
OUTPUT_VARIABLE PYTHON_OPENSSL_VERSION
)

Expand Down

0 comments on commit 3f53257

Please sign in to comment.