[Paraview] Detecting build type in C++ code

Chris Cameron heyitschriscameron at gmail.com
Thu Aug 7 17:08:23 EDT 2008


Hi,

I'm looking for a cross-platform way of detecting the build type from C++
code.

The idea is that if the code is being compiled for release, that certain
testing things we do can be eliminated from the release build of our
Paraview.

Something like

#ifdef (CMAKE_RELEASE)
  // do some stuff
#else
  // do other stuff
#endif

would do the trick. Does anyone know the name of the define that I'm looking
for?

-- 
Chris Cameron
Mirarco Mining Innovation - e2vo
705-675-1151
x5113
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080807/3b2b26f4/attachment.htm>


More information about the ParaView mailing list