aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindNSIS.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-30 00:26:37 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-30 00:26:37 +0100
commit1646ce970cad7934a0dd661045fc323c649df61e (patch)
tree8a3b760127c797eb98efd439337abb03529a91e0 /cmake/Modules/FindNSIS.cmake
parent08906e0f7f28e5e90918d95a5bf0acf4f5a4982d (diff)
downloadlibssh-1646ce970cad7934a0dd661045fc323c649df61e.tar.gz
libssh-1646ce970cad7934a0dd661045fc323c649df61e.tar.xz
libssh-1646ce970cad7934a0dd661045fc323c649df61e.zip
cmake: Fixed find modules on Windows.
Diffstat (limited to 'cmake/Modules/FindNSIS.cmake')
-rw-r--r--cmake/Modules/FindNSIS.cmake27
1 files changed, 11 insertions, 16 deletions
diff --git a/cmake/Modules/FindNSIS.cmake b/cmake/Modules/FindNSIS.cmake
index c3910435..c92c2401 100644
--- a/cmake/Modules/FindNSIS.cmake
+++ b/cmake/Modules/FindNSIS.cmake
@@ -11,21 +11,16 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
-if (NSIS_MAKE)
- # in cache already
- set(NSIS_FOUND TRUE)
-elseif (NSIS_MAKE)
- find_program(NSIS_MAKE
- NAMES
- makensis
- PATHS
- ${_NSIS_DIR}
- ${_NSIS_DIR}/Bin
- $ENV{PROGRAMFILES}/NSIS
- )
+find_program(NSIS_MAKE
+ NAMES
+ makensis
+ PATHS
+ ${_NSIS_DIR}
+ ${_NSIS_DIR}/Bin
+ $ENV{PROGRAMFILES}/NSIS
+)
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE)
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE)
- mark_as_advanced(NSIS_MAKE)
-endif (NSIS_MAKE)
+mark_as_advanced(NSIS_MAKE)