Thanks also , that's what I want to do as well!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of James C. Sutherland Sent: 16 September 2009 00:34 To: CMake List Subject: Re: [CMake] is ccmake reliable? On Sep 15, 2009, at 2:47 PM, Tyler Roscoe wrote: > On Tue, Sep 15, 2009 at 02:20:35PM -0600, James C. Sutherland wrote: >>>>> set( CMAKE_INSTALL_PREFIX >>>>> ${CMAKE_CURRENT_BINARY_DIR} >>>>> CACHE PATH "installation path" >>>>> ) >>>> This doesn't work - I assume that this is because >>>> CMAKE_INSTALL_PREFIX is a special (internally defined) variable? >>>> When I run ccmake and configure, the value remains as /usr/local. > > I guess its intended use is for something like this: > > if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) > set (CMAKE_INSTALL_PREFIX "myPrefix" CACHE FORCE ...) endif () > if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set (CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "" FORCE ) endif() This did what I want. It sets the default value for what I want, and allows the user to reset it when running ccmake. Thanks for the tips! James _______________________________________________ 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 This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom _______________________________________________ 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
