Fast DDS installation problems/errors

I am trying to follow instructions for installation of FAST-DDS on Ubuntu 18.04. During make -j$(nproc --all),I get this error

[  5%] Linking CXX shared library
/usr/bin/ld: cannot find -lOpenSSL::SSL
/usr/bin/ld: cannot find -lOpenSSL::Crypto
collect2: error: ld returned 1 exit status
src/cpp/CMakeFiles/fastrtps.dir/build.make:4047: recipe for target 'src/cpp/' failed
make[2]: *** [src/cpp/] Error 1
CMakeFiles/Makefile2:1054: recipe for target 'src/cpp/CMakeFiles/fastrtps.dir/all' failed
make[1]: *** [src/cpp/CMakeFiles/fastrtps.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Openssl exists on my system, OpenSSL 1.1.1 11 Sep 2018

here is the /build/Makefile

here is the complete terminal output