add cache variable to CMakeLists.txt

visa library user-selectable