build: Fixed the NSIS build.

This commit is contained in:
Andreas Schneider
2010-07-13 17:49:01 +02:00
parent ac54a26c5d
commit aa8381999a

View File

@@ -22,10 +22,13 @@ set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;tags;cscope.*") set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;tags;cscope.*")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
if (WIN32)
set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS TRUE)
include(InstallRequiredSystemLibraries)
### nsis generator
set(CPACK_GENERATOR "ZIP") set(CPACK_GENERATOR "ZIP")
### nsis generator
find_package(NSIS) find_package(NSIS)
if (HAVE_NSIS) if (HAVE_NSIS)
set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS") set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS")
@@ -33,6 +36,7 @@ if (HAVE_NSIS)
set(CPACK_NSIS_COMPRESSOR "/SOLID zlib") set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
set(CPACK_NSIS_MENU_LINKS "http://www.libssh.org/" "libssh homepage") set(CPACK_NSIS_MENU_LINKS "http://www.libssh.org/" "libssh homepage")
endif (HAVE_NSIS) endif (HAVE_NSIS)
endif (WIN32)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "libssh") set(CPACK_PACKAGE_INSTALL_DIRECTORY "libssh")