GMT 6 instalation in Ubuntu 20.04

I try to install GMT 6.3.0 in Ubuntu 20.04 but obtained an error with “curl” dependence (I already have installed it according instructions). The log is as follows:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find CURL (missing: CURL_LIBRARY) (found version “7.68.0”)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindCURL.cmake:143 (find_package_handle_standard_args)
src/CMakeLists.txt:144 (find_package)
How can I solve the problem?

have you installed libcurl4-gnutls-dev?, as described in
Install dependencies on Ubuntu and Debian
Here in my ubuntu 20.04 it has been found:
Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version “7.68.0”)

It was not the problem, the “curl” was instaled. Thank you very much for your help.
I just found why it happened to me. I belive that this is a bug in the instaling scripts, because you don’t fix the compiler to use. In my case I have instaled, aditional to the GNU “gcc”, the Oracle compiler “CC”. The script searched for a C compiler and selected one the presents in the path, in that case the Oracle’s one, and appered the error that I reported. I removed from the path the Oracle compiler, and the instalation was done with “gcc” withouth errors.