I currently have the following macro:

macro( get_conf_dependencies var_name project_name debug )
   if( debug )
       message( "Using DEBUG" )
       set( ${var_name} ${${project_name}_DEBUG_DEPENDENCIES} )
   else()
       set( ${var_name} ${${project_name}_RELEASE_DEPENDENCIES} )
   endif()
endmacro()
I then call the macro in two particular ways:
get_conf_dependencies( myVar myProject TRUE )
get_conf_dependencies( myVar myProject FALSE )
In both cases, I *do not* get the message "Using DEBUG". Are my eyes playing
tricks on me, or is CMake not processing trivial boolean logic properly in
its conditionals? I'm using version 2.6.3.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to