On 10/3/2011 1:39 PM, John R. Cary wrote:
I am using the cmakedefine mechanism for a fortran include file.
If the variable is not defined, rather than
/* #undef HAVE_PLASMASTATE */
I need
! #undef HAVE_PLASMASTATE
Are there existing solutions?
Thx...John Cary
You could do something like this:
In CMake code, make sure HAVE_PLASMASTATE is set to 0 when it is not
found. Then put this in the configured file:
#define HAVE_PLASMASTATE @HAVE_PLASMASTATE@
#if HAVE_PLASMASTATE == 0
#undef HAVE_PLASMASTATE
#endif
-Bill
--
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