From 3017907fd83d32e89e91f43a5d2b94d4155beddd Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Mon, 27 Dec 2010 13:56:09 -0800
Subject: cmake: changes to finding python interp, some other tweaks

---
 host/docs/CMakeLists.txt | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

(limited to 'host/docs')

diff --git a/host/docs/CMakeLists.txt b/host/docs/CMakeLists.txt
index d6a7801bf..54e0d589c 100644
--- a/host/docs/CMakeLists.txt
+++ b/host/docs/CMakeLists.txt
@@ -38,17 +38,15 @@ SET(manual_sources
 MESSAGE(STATUS "")
 MESSAGE(STATUS "Checking for rst2html (docutils)")
 FIND_PROGRAM(RST2HTML rst2html)
-IF(${RST2HTML} STREQUAL "RST2HTML-NOTFOUND")
-    MESSAGE(STATUS "Checking for rst2html (docutils) - not found")
-    MESSAGE(STATUS "  Disabled generation of HTML manual.")
-    SET(HAVE_RST2HTML FALSE)
-ELSE(${RST2HTML} STREQUAL "RST2HTML-NOTFOUND")
+IF(RST2HTML)
     MESSAGE(STATUS "Checking for rst2html (docutils) - found")
     MESSAGE(STATUS "  Enabled generation of HTML manual.")
-    SET(HAVE_RST2HTML TRUE)
-ENDIF(${RST2HTML} STREQUAL "RST2HTML-NOTFOUND")
+ELSE(RST2HTML)
+    MESSAGE(STATUS "Checking for rst2html (docutils) - not found")
+    MESSAGE(STATUS "  Disabled generation of HTML manual.")
+ENDIF(RST2HTML)
 
-LIBUHD_REGISTER_COMPONENT("Manual" ENABLE_MANUAL ON "HAVE_RST2HTML" OFF)
+LIBUHD_REGISTER_COMPONENT("Manual" ENABLE_MANUAL ON "RST2HTML" OFF)
 
 IF(ENABLE_MANUAL)
     #setup rst2html options
-- 
cgit v1.2.3