FLTK logo

Re: [fltk/fltk] Generating 'fltk.pdf' on Windows (Issue #731)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Generating 'fltk.pdf' on Windows (Issue #731) Gisle Vanem 11:00 Jun 03  
 

You wrote that you have "a Cygwin 64-bit version" available which is very likely the reason why the custom command
(when invoked with sh) works at all

Sure I have all that. But I did the build from a non-Posix shell (hate bash).

I thought something like:

if (WIN32)
  set(SH "sh.exe")
else()
  set(SH "")
endif()
.....
 add_custom_command (
    OUTPUT  ${CMAKE_CURRENT_BINARY_DIR}/fltk.pdf
    COMMAND ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/make_header
    .... 

would do it. But then again, I'm a n00b when it comes to Cmake.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/731/1575100865@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.