Skip to content

Commit

Permalink
Print an error message if PySideTools are not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mghansen256 authored and yorikvanhavre committed Nov 28, 2014
1 parent c04c513 commit 55884f3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions cMake/FindPySideTools.cmake
Expand Up @@ -74,8 +74,16 @@ IF(EXISTS ${PYSIDEUIC4BINARY} AND EXISTS ${PYSIDERCC4BINARY})
set(PYSIDE_TOOLS_FOUND TRUE)
ENDIF(EXISTS ${PYSIDEUIC4BINARY} AND EXISTS ${PYSIDERCC4BINARY})

if(PYSIDE_TOOLS_FOUND)
if(NOT PYSIDE_TOOLS_FOUND_QUIETLY)
message(STATUS "Found PySide Tools: ${PYSIDEUIC4BINARY}, ${PYSIDERCC4BINARY}")
endif(NOT PYSIDE_TOOLS_FOUND_QUIETLY)
endif(PYSIDE_TOOLS_FOUND)
if(PYSIDERCC4BINARY AND PYSIDEUIC4BINARY)
if (NOT PySideTools_FIND_QUIETLY)
message(STATUS "Found PySide Tools: ${PYSIDEUIC4BINARY}, ${PYSIDERCC4BINARY}")
endif (NOT PySideTools_FIND_QUIETLY)
else(PYSIDERCC4BINARY AND PYSIDEUIC4BINARY)
if(PySideTools_FIND_REQUIRED)
message(FATAL_ERROR "PySideTools could not be not found, but are required.")
else(PySideTools_FIND_REQUIRED)
if (NOT PySideTools_FIND_QUIETLY)
message(STATUS "PySideTools: not found.")
endif (NOT PySideTools_FIND_QUIETLY)
endif(PySideTools_FIND_REQUIRED)
endif(PYSIDERCC4BINARY AND PYSIDEUIC4BINARY)

0 comments on commit 55884f3

Please sign in to comment.