Use empty string instead of zero to indicate not found

When writing the variable HAVE_SUPERLU to the config.h file, an empty
string will be interpreted as "not defined". Thus, we can use both
if and ifdef preprocessor directives to check for it. If we use zero,
then we must be careful to always use if, never ifdef.
This commit is contained in:
Roland Kaufmann
2013-03-20 09:34:33 +01:00
parent b6cdc06b7a
commit 9406e198cb

View File

@@ -159,5 +159,5 @@ endif(SUPERLU_FOUND)
if(SUPERLU_FOUND)
set(HAVE_SUPERLU 1)
else(SUPERLU_FOUND)
set(HAVE_SUPERLU 0)
set(HAVE_SUPERLU "")
endif(SUPERLU_FOUND)