From 29fd6bb4c16863c3f0237c312d598880dd697879 Mon Sep 17 00:00:00 2001 From: Ayman Habib Date: Mon, 23 May 2022 13:51:09 -0700 Subject: [PATCH] Tune CMake options for python per build instructions feedback on github (#3208) * Tune CMake options for python per build instructions feedback on github * Update CMakeLists.txt Expand cmake comment per feedback on PR --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3396b00e35..f8bd4ef10b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,7 @@ mark_as_advanced(OPENSIM_PYTHON_STANDALONE) # Mainly for packagers; not users. option(OPENSIM_PYTHON_CONDA "Build specifically for Conda packaging which implies NO C++ tests and no runtime as managed by Conda." OFF) +mark_as_advanced(OPENSIM_PYTHON_CONDA) option(BUILD_API_ONLY "Build/install only headers, libraries, wrapping, tests; not applications (opensim, ik, rra, etc.)." OFF) @@ -549,6 +550,7 @@ endif() if(${BUILD_PYTHON_WRAPPING}) set(required_python_version 3) + set(Python3_ROOT_DIR "" CACHE PATH "Top level directory containing Python3. For conda environments, this can also be set to the top level directory for a specific environment.") find_package(Python3 3.6 REQUIRED COMPONENTS Interpreter Development NumPy) message("Python3_FOUND:${Python3_FOUND}") message("Python3_VERSION:${Python3_VERSION}")