I'm using the line:
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/INSTALL" CACHE PATH "Directory for sbnw installation")
as described in the docs to change the default install directory from C:/Program Files (x86)/SBNW
to project_root/INSTALL
. However, I still want users to still be able to choose the default install path. After using this command, the value of CMAKE_INSTALL_PREFIX
is still C:/Program Files (x86)/SBNW
. Does anybody know why?