2012/4/29 Harry van der Wolf <[email protected]>
> I need a cmake expert or at least someone who is not a cmake dummy like me.
>
> Like in the first mail I want to implement something like:
> if (UNIX)
> then
> option(BUILD_HSI "Python Scripting Interface" ON)
> elif
> option(BUILD_HSI "Python Scripting Interface" OFF)
> fi
>
> It's of course simple to switch it on for Unix (or linux), but I also need
> to check whether the "-DBUILD_HSI=" option itself has been set.
>
> Checking on something like "IF(NOT BUILD_HSI)" displays whether someone
> has not set it (forgot to set it) or deliberately switched it off.
> "cmake .." gives the same result as as "cmake -DBUILD_HSI=off .." setting.
>
> How do I check if someone deliberately specified -DBUILD_HSI=off (or
> -DBUILD_HSI=0) because he/she doesn't want to build the hsi module?
>
> And of course: If you have access to the trunk: Feel free to apply the
> patch yourself.
>
> Hoi,
> Harry
>
Of course it needs to be:
IF(UNIX)
option(BUILD_HSI "Python Scripting Interface" ON)
ELSE(UNIX)
option(BUILD_HSI "Python Scripting Interface" OFF)
ENDIF(UNIX)
I was working on this cmake stuff yesterday evening and didn't succeed, not
even after long googling.
Today I'm working on shell scripts and instead of copying the cmake code
from the CMakeList.txt, I typed the "cmake code" directly into this mail
using shell coding style.
Sorry.
Harry
--
You received this message because you are subscribed to the Google Groups
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx