From bf595a8aad5ede5bcf239ef3524db8dcbb8bfb33 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 2 Nov 2023 10:06:36 +0100 Subject: [PATCH] Also set Python_EXECUTABLE CMake option in generated conda recipes --- conda/cmake/RobotologySuperbuildGenerateCondaRecipes.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conda/cmake/RobotologySuperbuildGenerateCondaRecipes.cmake b/conda/cmake/RobotologySuperbuildGenerateCondaRecipes.cmake index dfe4c76a9..38ce4fbca 100644 --- a/conda/cmake/RobotologySuperbuildGenerateCondaRecipes.cmake +++ b/conda/cmake/RobotologySuperbuildGenerateCondaRecipes.cmake @@ -168,8 +168,10 @@ macro(generate_metametadata_file) if("python" IN_LIST ${_cmake_pkg}_CONDA_DEPENDENCIES) if(WIN32) string(APPEND metametadata_file_contents " - \"-DPython3_EXECUTABLE:PATH=%PYTHON%\"\n") + string(APPEND metametadata_file_contents " - \"-DPython_EXECUTABLE:PATH=%PYTHON%\"\n") else() string(APPEND metametadata_file_contents " - \"-DPython3_EXECUTABLE:PATH=$PYTHON\"\n") + string(APPEND metametadata_file_contents " - \"-DPython_EXECUTABLE:PATH=$PYTHON\"\n") endif() endif() endif()