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

Dat Chu dattanchu at gmail.com
Thu Feb 5 13:12:06 EST 2009


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.

With warm regards,
Dat Chu


More information about the CMake mailing list