MantisBT - CMake
View Issue Details
0012478CMakeModulespublic2011-09-30 03:402012-02-06 06:07
Mark Abraham 
Brad King 
lowminoralways
closedduplicate 
Win32cygwin1.7
CMake-2-8 
 
0012478: Under Cygwin, FindLATEX does not find installed tools
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 0012036
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
 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.
No tags attached.
duplicate of 0012036closed Miguel Figueroa Under Cygwin, FindLATEX does not find installed tools 
Issue History
2011-09-30 03:40Mark AbrahamNew Issue
2011-09-30 16:14Brad KingRelationship addedduplicate of 0012036
2011-09-30 16:14Brad KingStatusnew => resolved
2011-09-30 16:14Brad KingResolutionopen => duplicate
2011-09-30 16:14Brad KingAssigned To => Brad King
2012-02-06 06:07David ColeNote Added: 0028514
2012-02-06 06:07David ColeStatusresolved => closed

Notes
(0028514)
David Cole   
2012-02-06 06:07   
Closing resolved issues that have not been updated in more than 4 months.