diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-03-01 11:08:01 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-03-01 11:08:01 (GMT) |
commit | daa3ef16f4e6c68dc0f9e9a349cd327d50d415b3 (patch) | |
tree | 26dfd77f1cbf2f122f590e09d3e2c905a8540e1a /src | |
parent | 60bfa964747c9ff03b40f049713c90afcc17acb6 (diff) |
Modify the option to specify if ZLIB should be used.
In GROMACS there is an extra check to see that ZLIB can actually
be linked against. This change uses those options properly.
Change-Id: I910be0cf81a47c9feea2d3494925cc4a3c82dc4b
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 45e13d2..c760f57 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -23,7 +23,7 @@ if(TNG_INTEGER_BIG_ENDIAN) set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS TNG_INTEGER_BIG_ENDIAN) endif() -if(ZLIB_FOUND) +if(TNG_BUILD_WITH_ZLIB) set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_ZLIB) target_link_libraries(tng_io tng_compress ${ZLIB_LIBRARIES}) else() |