making use of CMake cache variables