[CMake] several questions about cmake

John Drescher drescherjm at gmail.com
Thu Aug 26 11:45:06 EDT 2010


On Thu, Aug 26, 2010 at 6:47 AM, Hickel, Kelly <Kelly_Hickel at bmc.com> wrote:
>
>
>> -----Original Message-----
>> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On
>> Behalf Of Mike McQuaid
>> Sent: Thursday, August 26, 2010 1:12 AM
>> To: Mark Roden
>> Cc: cmake at cmake.org
>> Subject: Re: [CMake] several questions about cmake
>>
>> On 26 August 2010 01:34, Mark Roden <mmroden at gmail.com> wrote:
>> > I'm starting to get deep into CMake, and I have a few questions as I
>> > try to convert the socket++ library such that it can be compiled by
>> > CMake on Windows.
>> >
>> > 1) The default install directory on Windows is C:\Program Files, or
>> > C:\Program Files (x86) on 64 bit.  This default will not work on
>> > Windows 7 (and perhaps Vista), because the user isn't running as
>> > administrator anymore, and only administrators can modify that
>> > directory.  There should probably be a warning to that effect on
>> > windows systems; otherwise, there are painful ways to run install,
>> but
>> > they are painful.
>>
>> Most developers run as administrator so I don't think there should be a
>> warning.
>>
>
> In Windows 7 and Windows 2008 server, being logged in as a user in the Administrators
> group is not sufficient, you have to elevate the privs of your process to write in those directories.
> Another possibility is turning off UAC all together.
>
> So the warning might still be a good idea.
>
I agree. Installing on these systems even as administrator to the
default location C:\Program Files\  fails. I usually have CMake
install elsewhere by changing the CMAKE_INSTALL_PREFIX

John


More information about the CMake mailing list