View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012478CMakeModulespublic2011-09-30 03:402012-02-06 06:07
ReporterMark Abraham 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformWin32OScygwinOS Version1.7
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0012478: Under Cygwin, FindLATEX does not find installed tools
DescriptionModules/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 0012036
Steps To Reproduce1. 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.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0012036closedMiguel Figueroa Under Cygwin, FindLATEX does not find installed tools 

  Notes
(0028514)
David Cole (manager)
2012-02-06 06:07

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-09-30 03:40 Mark Abraham New Issue
2011-09-30 16:14 Brad King Relationship added duplicate of 0012036
2011-09-30 16:14 Brad King Status new => resolved
2011-09-30 16:14 Brad King Resolution open => duplicate
2011-09-30 16:14 Brad King Assigned To => Brad King
2012-02-06 06:07 David Cole Note Added: 0028514
2012-02-06 06:07 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team