Problem with $INSTALL_PREFIX

Im trying do build gvm.

mkdir -p $BUILD_DIR/gvm-libs && cd $BUILD_DIR/gvm-libs

cmake $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX
-DCMAKE_BUILD_TYPE=Release
-DSYSCONFDIR=/etc
-DLOCALSTATEDIR=/var

And i do :
cmake greenbone/gvm-libs-22.4.4 \

-DCMAKE_INSTALL_PREFIX=/usr/local \

and my output is, really cant understood how $INSTALL_PREFIX works.

CMake Error: The source directory “/home/spears/buildgreenbone/gvm-libs/greenbone/gvm-libs-22.4.4” does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

I think i do mistake in this too.
export SOURCE_DIR=$HOME/source
mkdir -p $SOURCE_DIR

Can someone help me get throught the variables with $?