summaryrefslogtreecommitdiffstats
path: root/Modules/FindProducer.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-01-30 20:13:07 (GMT)
committerPhilip Lowman <philip@yhbt.com>2009-01-30 20:13:07 (GMT)
commit1569f5d0e46e7f763326b8e0e9f6529e3a0247d6 (patch)
treed833f17c2bf2357f21d87f86d6928457828950f6 /Modules/FindProducer.cmake
parent901b4b6c3f4e44ba9286236181da44b1e967e5e8 (diff)
downloadCMake-1569f5d0e46e7f763326b8e0e9f6529e3a0247d6.zip
CMake-1569f5d0e46e7f763326b8e0e9f6529e3a0247d6.tar.gz
CMake-1569f5d0e46e7f763326b8e0e9f6529e3a0247d6.tar.bz2
BUG: Fix other modules not respecting QUIET and REQUIRED
Diffstat (limited to 'Modules/FindProducer.cmake')
-rw-r--r--Modules/FindProducer.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/FindProducer.cmake b/Modules/FindProducer.cmake
index db51d3a..d8151ef 100644
--- a/Modules/FindProducer.cmake
+++ b/Modules/FindProducer.cmake
@@ -64,9 +64,6 @@ FIND_LIBRARY(PRODUCER_LIBRARY
/opt
)
-SET(PRODUCER_FOUND "NO")
-IF(PRODUCER_LIBRARY AND PRODUCER_INCLUDE_DIR)
- SET(PRODUCER_FOUND "YES")
-ENDIF(PRODUCER_LIBRARY AND PRODUCER_INCLUDE_DIR)
-
-
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Producer DEFAULT_MSG
+ PRODUCER_LIBRARY PRODUCER_INCLUDE_DIR)