<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 6:14 AM, Ben <span dir="ltr"><<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 06/16/2013 11:55 PM, Greg Hellings wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Sun, Jun 16, 2013 at 9:22 PM, <<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>>> wrote:<br>
<br>
Hey Greg,<br>
<br>
I'm building the python bindings with cmake 2.6.4. I'm trying to<br>
specify a user location, but it doesn't work with current svn -<br>
SWORD_PYTHON_INSTALL_DIR is always just "OFF", even if I pass a<br>
value through the cmake command. If I pass "1" as the value, then<br>
SWORD_PYTHON_INSTALL_DIR gets set, but it's obviously not what I'm<br>
looking for.<br>
<br>
If I comment out the OPTION setting in cmake/options.cmake, it seems<br>
to work properly for me.<br>
<br>
<br>
What exact command line are you invoking CMake with? And are you doing<br>
it from a clean configuration directory (e.g. new dir or "rm -rf * .*"<br>
beforehand)? CMake is very unfriendly towards attempts to reconfigure a<br>
directory.<br>
</div></blockquote>
<br>
<br>
cmake -DCMAKE_INSTALL_PREFIX="~/<u></u>sword-cmake-build/install" -DLIBSWORD_LIBRARY_TYPE="<u></u>Shared" -DSWORD_BUILD_TESTS=Yes -DSWORD_BINDINGS=Python -DSWORD_PYTHON_INSTALL_DIR=~/<u></u>sword-cmake-build/install -DSWORD_BUILD_EXAMPLES=Yes /path/to/svn/sword<br>
<br>
Yes, it's a clean directory.<br>
<br>
I output the value of SWORD_PYTHON_INSTALL_DIR, and it says the value is "OFF". Again, if I remove the OPTION command in options.cmake, then it takes the value that I pass in from the command line.<div class="HOEnZb">
<div class="h5"><br>
<br>
-Ben<br></div></div></blockquote><div><br></div><div style>I was misusing the CMake OPTION command. Turns out it only works for ON/OFF values and cannot handle arbitrary strings. I have updated the handling to hopefully work as intended. Can you give it a whirl and let me know if it is now working better for you?</div>
<div style><br></div><div style>--Greg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/<u></u>mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div></div>