|
Boost Interest : |
Subject: Re: [Boost-cmake] trying to use non-system Python
From: Randy Heiland (heiland_at_[hidden])
Date: 2009-03-04 10:18:46
On Mar 4, 2009, at 10:15 AM, troy d. straszheim wrote:
> Randy Heiland wrote:
>> Hello,
>>
>> I'll post this in case someone knows the answer, while I go
>> searching...
>>
>> I want to specify a non-system Python to be used, so I set the
>> following
>> in my CMakeCache.txt (obviously, I'm on OSX):
>>
>> PYTHON_DEBUG_LIBRARY:FILEPATH=<path-to-my>/Python.framework
>> PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python2.6
>> PYTHON_INCLUDE_PATH:PATH=<path-to-my>/Python.framework/Headers
>> PYTHON_DEBUG_LIBRARY:FILEPATH=<path-to-my>/Python.framework
>>
>> However, re-config'ing, both of the LIB vars get reset to the system
>> Python:
>> PYTHON_DEBUG_LIBRARY:FILEPATH=-framework Python
>> PYTHON_LIBRARY:FILEPATH=-framework Python
>>
>> I'm able to get away with doing this, i.e. specify non-system Python,
>> for another cmake-based project. I'm guessing the problem has to do
>> with FindPythonLibs.cmake
>
> Hmm. So setting those manually in your cmake cache triggers a reconf
> for boost-cmake, but not the other project you speak of?
>
> -t
Correct.