cmake/FindGhostscript.cmake
author Balazs Dezso <deba@inf.elte.hu>
Sun, 05 Oct 2008 21:09:01 +0200
changeset 295 7c796c1cf1b0
child 500 97070bd10b98
permissions -rw-r--r--
Fix memory leak hazard

If the constructor throws an exception, it should deallocate each
dynamically allocated memory.
alpar@225
     1
INCLUDE(FindPackageHandleStandardArgs)
alpar@225
     2
alpar@225
     3
FIND_PROGRAM(GHOSTSCRIPT_EXECUTABLE
alpar@225
     4
  NAMES gs gswin32c
alpar@225
     5
  PATHS "$ENV{ProgramFiles}/gs"
alpar@225
     6
  PATH_SUFFIXES gs8.61/bin gs8.62/bin
alpar@225
     7
  DOC "Ghostscript: PostScript and PDF language interpreter and previewer."
alpar@225
     8
)
alpar@225
     9
alpar@225
    10
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ghostscript DEFAULT_MSG GHOSTSCRIPT_EXECUTABLE)