This way it can be overwritten when cross compiling.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Can we match what FindPythonInterp and FindPythonLibs does?
mark_as_advanced( PYTHON_EXECUTABLE PYTHON_DEBUG_LIBRARY PYTHON_LIBRARY PYTHON_INCLUDE_DIR )
Added for PYTHON_EXECUTABLE.
PYTHON_HOME is required, and other variables are derived from PYTHON_HOME. I don't think anyone will be interested in setting them separately...
With mark_as_advanced you don't have to modify the code above. Even if they're not needed, I'd still prefer to include the other variables as well, just to maintain consistency with was CMake does.
Turns out I still need to change previous lines to remove PARENT_SCOPE. Otherwise local value will still be used even if a different value is set in the cache.
Add CACHE PATH again. I think this is the only way to go.
With PARENT_SCOPE: Tthe local detected value is always used, even if a different value is set in cache.
With no parameter: Always the value in cache is used. If a value is not set in cache, empty is used.
Hmm, that's unfortunately but I guess it makes sense. Let's remove the mark_as_advanced as it doesn't really serve a purpose anymore. Apologies about the churn!