summaryrefslogtreecommitdiff
path: root/src/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-04 13:18:29 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-04 13:18:29 (GMT)
commit0f1d005a2a7123f4077dbe3ff446ced8f240f1f8 (patch)
tree37b13e6cac9bd952a62311061ed34ddb61584e5e /src/lib/CMakeLists.txt
parent4901b0a94633bb131c10d830fdbd4d6a07c54c5e (diff)
Let CMake check endianness for MD5. Remove GROMACS header.
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rw-r--r--src/lib/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 20923d8..45e13d2 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -15,6 +15,14 @@ if(HAVE_INTTYPES_H)
set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H)
endif()
+# This test is for md5. The TNG library itself determines the actual byte order -
+# not just if it is small or big endian.
+include(TestBigEndian)
+test_big_endian(TNG_INTEGER_BIG_ENDIAN)
+if(TNG_INTEGER_BIG_ENDIAN)
+ set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS TNG_INTEGER_BIG_ENDIAN)
+endif()
+
if(ZLIB_FOUND)
set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_ZLIB)
target_link_libraries(tng_io tng_compress ${ZLIB_LIBRARIES})
contact: Jan Huwald // Impressum