[cmake-developers] [CMake 0012036]: Under Cygwin, FindLATEX does not find installed tools
Mantis Bug Tracker
mantis at public.kitware.com
Thu Mar 31 23:33:35 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12036
======================================================================
Reported By: Mark Abraham
Assigned To:
======================================================================
Project: CMake
Issue ID: 12036
Category: CMake
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2011-03-31 23:33 EDT
Last Modified: 2011-03-31 23:33 EDT
======================================================================
Summary: Under Cygwin, FindLATEX does not find installed
tools
Description:
Modules/FindLATEX.cmake searches for ps2pdf differently according to whether the
machine is WIN32 or not. However, ps2pdf can be present as a Cygwin package, and
the FIND_PROGRAM tests as written will not find it.
Steps to Reproduce:
1. Install cygwin with cygwin ghostscript package
2. Do not install Windows native Ghostscript
3. Use cmake FIND_PACKAGE(LATEX)
4. Observe failure to find ps2pdf from ghostscript installation
Additional Information:
I recommend the code at the end of Modules/FindLATEX.cmake change to:
IF (WIN32)
IF (CYGWIN)
FIND_PROGRAM(PS2PDF_CONVERTER
NAMES ps2pdf14 ps2pdf ps2pdf14.bat
PATHS ${GHOSTSCRIPT_LIBRARY_PATH}
)
ELSE (CYGWIN)
FIND_PROGRAM(PS2PDF_CONVERTER
NAMES ps2pdf14.bat
PATHS ${GHOSTSCRIPT_LIBRARY_PATH}
)
ENDIF (CYGWIN)
ELSE (WIN32)
FIND_PROGRAM(PS2PDF_CONVERTER
NAMES ps2pdf14 ps2pdf
)
ENDIF (WIN32)
I've tested this, and it will find Cygwin-native tools in preference to native
Windows ones.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-03-31 23:33 Mark Abraham New Issue
======================================================================
More information about the cmake-developers
mailing list