summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-09 15:54:56 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-12-09 15:54:56 (GMT)
commit66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97 (patch)
treecaed2fed8de3536f9aa0efa4707c6ad6f26baadd
parent3b9477231d2947fa6281a1e29b4459d3f66d4a49 (diff)
parente01040636d3c8028019f00c2f226dd2f6d552732 (diff)
downloadCMake-66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97.zip
CMake-66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97.tar.gz
CMake-66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97.tar.bz2
Merge topic 'FindLATEX-use-FPHSA'
e0104063 FindLATEX: Use FPHSA to report status in standard way
-rw-r--r--Modules/FindLATEX.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake
index e353d38..a935f00 100644
--- a/Modules/FindLATEX.cmake
+++ b/Modules/FindLATEX.cmake
@@ -4,8 +4,9 @@
#
# Find Latex
#
-# This module finds if Latex is installed and determines where the
-# executables are. This code sets the following variables:
+# This module finds an installed Latex and determines the location
+# of the compiler. Additionally the module looks for Latex-related
+# software like BibTeX. This code sets the following variables:
#
# ::
#
@@ -18,7 +19,7 @@
# LATEX2HTML_CONVERTER: path to the LaTeX2Html converter
#=============================================================================
-# Copyright 2002-2009 Kitware, Inc.
+# Copyright 2002-2014 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
@@ -131,3 +132,8 @@ mark_as_advanced(
PS2PDF_CONVERTER
LATEX2HTML_CONVERTER
)
+
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+find_package_handle_standard_args(Latex
+ REQUIRED_VARS LATEX_COMPILER
+)