ADIOS 2.5.0: Build issue with ZFP

Created by: pnorbert

cmake configuration does not find my ZFP installation on my VM.

This did work with v2.4.0:

adios@adiosVM:~/Software/ADIOS2/build$ 
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/adios2  -DADIOS2_USE_MPI=ON  \
    -DADIOS2_USE_Fortran=ON    -DADIOS2_USE_Python=ON   \
    -DADIOS2_USE_HDF5=ON       -DHDF5_ROOT=/opt/hdf5-parallel \
    -DBLOSC_ROOT=/opt/blosc  \
    -DADIOS2_USE_MGARD=ON -DMGARD_ROOT=/opt/MGARD \
     -DSZ_ROOT=/opt/SZ/2.0.2.1 \ 
     -DZFP_ROOT=/opt/zfp/0.5.5    \   
     -DADIOS2_BUILD_TESTING=OFF     \
     -DADIOS2_BUILD_EXAMPLES_EXPERIMENTAL=OFF    \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo     \
     -DPYTHON_EXECUTABLE=/usr/bin/python3    ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
...
-- Found Blosc: /opt/blosc/lib/libblosc.so (found version "..") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZFP: /opt/zfp/0.5.5/lib/libzfp.a  
-- Found SZ: /opt/SZ/2.0.2.1/lib/libSZ.a  
-- Found MGARD: /opt/MGARD/lib/libmgard.a  
-- Found ZLIB: /opt/SZ/2.0.2.1/lib/libzlib.a (found version "1.2.8") 
...

The same command with v2.5.0 does not find ZFP:

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Blosc: /opt/blosc/lib/libblosc.so (found suitable version "1.17.1", minimum required is "1.7") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Could NOT find zfp (missing: zfp_DIR)
-- Found SZ: /opt/SZ/2.0.2.1/lib/libSZ.a  
-- Found MGARD: /opt/MGARD/lib/libmgard.a  

If I set zfp_DIR, then it works fine. $ export zfp_DIR=/opt/zfp/0.5.5/lib/cmake