On Mon, Dec 14, 2009 at 12:21:13PM -0500, John Drescher wrote:
> On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe <[email protected]> wrote:
> > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote:
> >> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME}
> >> CACHE STRING "Default Install Path")
> >>
> >> if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
> >>    set (CMAKE_INSTALL_PREFIX ${DEFAULT_INSTALL_PATH} CACHE STRING
> >> "Install path" FORCE)
> >>    message("CMAKE_INSTALL_PREFIX Initialized to default setting to "
> >> ${DEFAULT_INSTALL_PATH})
> >> else (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
> >>    message("CMAKE_INSTALL_PREFIX not Initialized to default keeping "
> >> ${CMAKE_INSTALL_PREFIX})
> >> endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
> >>
> >> ENDIF(WIN32)
> >>
> >> The expected value for the QtBasicUtils project is if the user did not
> >> change CMAKE_INSTALL_PREFIX the path should be
> >> C:/Program Files (x86)/UPMC/QtBasicUtils
> >>
> >> on 64 bit systems or
> >>
> >> C:/Program Files/UPMC/QtBasicUtils
> >>
> >> on 32 bit systems
> >>
> >> However this is not getting set and I get the following message in my log:
> >> CMAKE_INSTALL_PREFIX not Initialized to default keeping C:/Program
> >> Files (x86)/QtBasicUtils
> >
> > Clean out your cache? Looks like your cache has CMAKE_INSTALL_PREFIX set
> > to 'C:/Program Files (x86)/QtBasicUtils', which is not the default, so
> > your script is behaving as it should and not clobbering the value.
> >
> 
> CMAKE_INSTALL_PREFIX is not in the cache. I thought that was default
> on 64 bit windows.

Not sure why you think this but that variable always appears in my
cache. I just tested it with a dummy CMakeLists and a clean build dir.

And if that var is not in the cache, then where is the value 'C:/Program
Files (x86)/QtBasicUtils' coming from?

tyler
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to