Skip to content

Commit

Permalink
cmake: Use FindPackageHandleStandardArgs module for WinDbg.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Mar 18, 2015
1 parent 3958ce9 commit 9528c68
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmake/FindWinDbg.cmake
Expand Up @@ -3,7 +3,7 @@
# WINDBG_DIR : full path to Windbg root dir
#

include (FindPackageMessage)
include (FindPackageHandleStandardArgs)

if (WIN32)
find_path (WINDBG_DIR
Expand All @@ -21,8 +21,4 @@ if (WIN32)
mark_as_advanced (WINDBG_DIR)
endif (WIN32)

if (WINDBG_DIR)
set (WINDBG_FOUND 1)
find_package_message (WINDBG "Found WinDbg: ${WINDBG_DIR}" "[${WINDBG_DIR}]")
endif ()
mark_as_advanced (WINDBG_FOUND)
find_package_handle_standard_args (WinDbg DEFAULT_MSG WINDBG_DIR)

0 comments on commit 9528c68

Please sign in to comment.