Hi,<div><br></div><div>Yes, I'm sorry, I already use</div><div><br></div><div> <meta http-equiv="content-type" content="text/html; charset=utf-8">engine_list(${SCUMMVM_ENGINE_AGI} "Build the AGI Engine")<br><br>
</div><div>Same problem still. My mistake to not include it here. </div><div><br></div><div>Thank you Jakob,</div><div>Miguel</div><div><br><div class="gmail_quote">2011/5/3 J.S. van Bethlehem <span dir="ltr"><<a href="mailto:j.s.van.bethlehem@astro.rug.nl">j.s.van.bethlehem@astro.rug.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Miguel Bernabeu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi there,<br>
<br>
I have a problem recently in a project I'm trying to port to CMake. My installed CMake version is 2.8.4 from Debian testing. I require version 2.6.2 as a minimum and CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS is set to TRUE.<br>
<br>
This is my macro:<br>
<br>
MACRO(ENGINE_LIST engine enginestring)<br>
if(${engine})<br>
set(ENABLED_ENGINES "${ ENABLED_ENGINES}${enginestring}\n")<br>
elseif(NOT ${engine})<br></div>
set(NOT ENABLED_ENGINES "${ NOTENABLED_ENGINES}${enginestring}\n")<div class="im"><br>
endif()<br>
ENDMACRO(ENGINE_LIST)<br>
<br>
This macro takes boolean parameter, selected or not in the configuraction menu, and a string. If it is true, the string is added to a list of enabled engines, if not, to a list of not enabled engines.<br>
<br>
Example:<br>
<br>
set(SCUMMVM_ENGINE_AGI FALSE CACHE BOOL "Build the AGI Engine")<br>
engine_list(SCUMMVM_ENGINE_AGI "Build the AGI Engine")<br>
<br>
message(STATUS "Enabled:"\n\n)<br>
message(STATUS "${ENABLED_ENGINES}\n")<br>
message(STATUS "Not Enabled:"\n\n)<br>
message(STATUS "${NOTENABLED_ENGINES}\n")<br>
<br>
The problem is that no matter if SCUMMVM_ENGINE_AGI is true or false, it is always caught in the ELSE clause. I've tried everything I could think of but I find myself lost. Could anyone point me to the flaw I'm unable to see?<br>
<br>
Thank you,<br>
Miguel<br>
</div></blockquote>
Given what seems to be your goal with this template, my first guess would be that you need to call the macro as:<div class="im"><br><meta http-equiv="content-type" content="text/html; charset=utf-8">engine_list(${SCUMMVM_ENGINE_AGI} "Build the AGI Engine")<br>
<br></div>
Jakob<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>