static build on Mac: install of adios2-config fails

Created by: pnorbert

pnb13:build-parallel-static pnb$ cmake -DCMAKE_INSTALL_PREFIX=/opt/adios2-static -DADIOS2_USE_MPI=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true ..

ADIOS2 build configuration:
  ADIOS Version: 2.3.1
  C++ Compiler : AppleClang 9.0.0.9000038 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

  Fortran Compiler : GNU 8.2.0 
    /usr/local/bin/gfortran

  Installation prefix: /opt/adios2-static
        bin: bin
        lib: lib
    include: include
      cmake: lib/cmake/adios2

  Features:
    Library Type: static (with PIC)
    Build Type:   Release
    Testing: ON
    Build Options:
      BZip2    : ON
      ZFP      : OFF
      SZ       : OFF
      MGARD    : OFF
      MPI      : ON
      DataMan  : ON
      SST      : ON
      ZeroMQ   : OFF
      HDF5     : ON
      Python   : OFF
      Fortran  : ON
      SysVShMem: ON
      Endian_Reverse: OFF
$ sudo  make install
...
-- Found atl: /opt/adios2-static/lib/cmake/adios2/thirdparty/atl-config.cmake (found suitable version "2.2.1", minimum required is "2.2.1") 
-- Found atl: /opt/adios2-static/lib/cmake/adios2/thirdparty/atl-config.cmake (found version "2.2.1") 
-- Found dill: /opt/adios2-static/lib/cmake/adios2/thirdparty/dill-config.cmake (found version "2.4.0") 
-- Found ffs: /opt/adios2-static/lib/cmake/adios2/thirdparty/ffs-config.cmake (found suitable version "1.6.0", minimum required is "1.6.0") 
-- Found dill: /opt/adios2-static/lib/cmake/adios2/thirdparty/dill-config.cmake (found suitable version "2.4.0", minimum required is "2.4.0") 
-- Found EVPath: /opt/adios2-static/lib/cmake/adios2/thirdparty/EVPathConfigCommon.cmake (found version "4.4.0") 
CMake Error at /opt/adios2-static/lib/cmake/adios2/upstream/CMakeFindDependencyMacro.cmake:47 (find_package):
  Found package configuration file:

    /opt/adios2-static/lib/cmake/adios2/thirdparty/EVPathConfig.cmake

  but it set EVPath_FOUND to FALSE so package "EVPath" is considered to be
  NOT FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing: enet::enet

Call Stack (most recent call first):
  /opt/adios2-static/lib/cmake/adios2/adios2-config-common.cmake:57 (find_dependency)
  /opt/adios2-static/lib/cmake/adios2/adios2-config.cmake:29 (include)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bxDz4Tym/CMakeFiles/CMakeOutput.log".
Failed