#! /bin/bash

mkdir _build && cd _build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX
make -j$CPU_COUNT all
make -j$CPU_COUNT install

#! /bin/bash

mkdir _build && cd _build

cmake  ..       \
       -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
       -DCMAKE_PREFIX_PATH:PATH=$PREFIX 

make -j$CPU_COUNT all
make -j$CPU_COUNT install

Add option CMAKE_PREFIX_PATH to cmake
Add option CMAKE_PREFIX_PATH to cmake