>>> On 24-11-2010 at 17:45, in message
<[email protected]>, Tyler
Roscoe <[email protected]> wrote: 
> On Wed, Nov 24, 2010 at 12:11:56PM +0100, Micha Renner wrote:
>> 
>> >   SET(CMAKE_INSTALL_PREFIX "/foo/bar" CACHE PATH "Foo install
prefix")
>> > 
>> > So, without the test to
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT,
>> > and without the FORCE option.
>>
>> No, as I mentioned, there was an article of one the
CMake-maintainers
>> who recommended this.
> 
> Micha is correct. CMAKE_INSTALL_PREFIX is set before your
CMakeLists.txt
> is processed, so the above will never do anything.
> 
> tyler

Well, I tested this before I posted my reply. It does work the way I
describe it. Try it yourself.

Marcel.

_______________________________________________
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