[CMake] Potential CMake bug ?
Bill Hoffman
bill.hoffman at kitware.com
Mon Jun 23 13:56:32 EDT 2008
Félix C. Morency wrote:
> Hi,
>
> Here's the situation:
>
> Install is performed according to the ${CMAKE_INSTALL_PREFIX}:
>
> install( FILES ${someFile) DESTINATION ${someRelativePath} )
>
> This works great and don't need admin rights to "make package".
>
> The problem is that I can't install anything in /etc without redefining
> the CMAKE_INSTALL_PREFIX to "/" or I need admin right to "make package".
>
> This is a very ugly hack IMHO.
>
> Any other workaround ?
>
So, this is a CPack issue. Have you tried setting:
SET(CPACK_SET_DESTDIR TRUE)
-Bill
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)
More information about the CMake
mailing list