[CMake] CPACK NSIS to install my app under a prefix

Clinton Stimpson clinton at elemtech.com
Thu Feb 5 13:15:21 EST 2009


Dat Chu wrote:
> Hello everyone,
>
> I would like to install my application under C:\Program Files\MyPrefix\MyAppName
>
> I tried using
>
> set(CMAKE_INSTALL_PREFIX "MyPrefix")
>
> but that doesn't work. I can get MyApp to be installed under
> C:\Program Files just fine (I guess because that is the default of
> CPACK NSIS generator). Has anyone solved this problem before? I would
> appreciate some guidance.
>
>   
Have you tried setting CPACK_PACKAGING_INSTALL_PREFIX=MyPrefix ?

Clint



More information about the CMake mailing list