The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12478 ====================================================================== Reported By: Mark Abraham Assigned To: ====================================================================== Project: CMake Issue ID: 12478 Category: Modules Reproducibility: always Severity: minor Priority: low Status: new ====================================================================== Date Submitted: 2011-09-30 03:40 EDT Last Modified: 2011-09-30 03:40 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.
Duplicate of issue http://public.kitware.com/Bug/view.php?id=12036 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: 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-09-30 03:40 Mark Abraham New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
