[CMake] Change cpack install folder

Eric Noulard eric.noulard at gmail.com
Sat Dec 17 12:32:36 EST 2011


2011/12/17 Totte Karlsson <totte at dunescientific.com>:
>
> But I found this NSIS specific setting
> CPACK_NSIS_INSTALL_ROOT
> But setting that as C:\\ still create the error: "Function missing ending
> ")" ".
>
> Not sure how to get this one right..

set(CPACK_NSIS_INSTALL_ROOT "C:")

should work.

It is awkward but since the template contains:

InstallDir "@CPACK_NSIS_INSTALL_ROOT@\@CPACK_PACKAGE_INSTALL_DIRECTORY@"

you cannot remove middle "\", thus the unexpected "C:" (not back
slashes whatsoever)


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list