Fix compiling if no endian.h found
authorPavel Puchkin <i@neoascetic.me>
Fri, 21 Nov 2014 22:31:12 +0000 (00:31 +0200)
committerCraig Robbins <kde.psych@gmail.com>
Sat, 22 Nov 2014 11:56:38 +0000 (21:56 +1000)
commitf7f24d1470d9553fdedcc0c687f0d9bd263b4903
tree6ef501eb0c219ccac35954bc7aa926a92f21468c
parent6c52de88fb73173d4cc039eec7e1ccf8992fd00d
Fix compiling if no endian.h found

f7d6509 introduces error when no endian.h found in the system.

Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
"cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
"config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
src/CMakeLists.txt