~ubuntu-branches/ubuntu/quantal/libssh/quantal

« back to all changes in this revision

Viewing changes to cmake/Modules/FindNSIS.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-03-13 22:06:00 UTC
  • mfrom: (1.1.9 upstream) (4.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110313220600-bbqbkcj8zelnfbbo
Tags: 0.4.8-2
* Upload to unstable
* debian/control: Add texlive-fonts-recommended to Build-Depends-Indep
  (Closes: #608319)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find NSIS
 
2
# Once done this will define
 
3
#
 
4
#  NSIS_FOUND - system has NSIS
 
5
#  NSIS_MAKE - NSIS creator executable
 
6
#
 
7
#  Copyright (c) 2010 Andreas Schneider <mail@cynapses.org>
 
8
#
 
9
#  Redistribution and use is allowed according to the terms of the New
 
10
#  BSD license.
 
11
#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
12
#
 
13
 
 
14
if (NSIS_MAKE)
 
15
  # in cache already
 
16
  set(NSIS_FOUND TRUE)
 
17
elseif (NSIS_MAKE)
 
18
    find_program(NSIS_MAKE
 
19
        NAMES
 
20
            makensis
 
21
        PATHS
 
22
            ${_NSIS_DIR}
 
23
            ${_NSIS_DIR}/Bin
 
24
            $ENV{PROGRAMFILES}/NSIS
 
25
    )
 
26
 
 
27
    include(FindPackageHandleStandardArgs)
 
28
    find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE)
 
29
 
 
30
    mark_as_advanced(NSIS_MAKE)
 
31
endif (NSIS_MAKE)