summaryrefslogtreecommitdiffstats
path: root/Modules/FindHhc.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-04 15:55:17 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-04 15:55:17 (GMT)
commitcb4f04c94e5815393e9b1d765588c23656149b4e (patch)
treee1586635e8c85d0e88faf7b42451f9d8f2de40ca /Modules/FindHhc.cmake
parentf68e64e2d8488a57740cc5b2fb0f914a769c4e8e (diff)
downloadCMake-cb4f04c94e5815393e9b1d765588c23656149b4e.zip
CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.gz
CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.bz2
Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED.
Diffstat (limited to 'Modules/FindHhc.cmake')
-rw-r--r--Modules/FindHhc.cmake16
1 files changed, 11 insertions, 5 deletions
diff --git a/Modules/FindHhc.cmake b/Modules/FindHhc.cmake
index 0df243d..859f061 100644
--- a/Modules/FindHhc.cmake
+++ b/Modules/FindHhc.cmake
@@ -2,8 +2,14 @@
# this module looks for Microsoft HTML Help Compiler
#
-FIND_PROGRAM(HHC
- hhc
- "C:/Program Files/HTML Help Workshop"
- "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
-)
+IF (WIN32)
+ FIND_PROGRAM(HHC
+ hhc
+ "C:/Program Files/HTML Help Workshop"
+ "[HKEY_CURRENT_USER\\Software\\Microsoft\\HTML Help Workshop;InstallDir]"
+ )
+
+ MARK_AS_ADVANCED(
+ HHC
+ )
+ENDIF (WIN32)