Help: Clarify when CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is set
Hi,
I just wanted to check my install prefix and, if it is default, reroute it. The documentation says:
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "/my/default" CACHE PATH "..." FORCE)
endif()
However there are 2 things:
- Shouldn't it be
if(${CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT})
? - Either way does not return anything on the variable
I also check the "Mastering CMake" Book which doesn't even list this variable. Any way I can work around this issue that doesn't involve string compare?
Thanks
Edited by Brad King