« Return to Thread: How to generate .exe suffix under Cygwin only

How to generate .exe suffix under Cygwin only

by kokot-san :: Rate this Message:

Reply to Author | View in Thread


Hi,

I have a small project that I am porting from Linux to Windows with Cygwin. Now I want to generate a .exe suffix for my executable only if it is compiled under Cygwin. When I build under Linux, it should not generate any suffix. How should I do this? Below my Jamfile I have so far.

Thank you,
Andrej


project : requirements
  <os>CYGWIN:<define>_WIN32_WINNT=0x0501
  <os>CYGWIN:<library-path>/usr/local/lib
  ;

exe cap2net
  : [ glob *.cpp ]
  /site-config//boost_regex
  /site-config//boost_serialization
  /site-config//boost_date_time
  : <link>static
  : <define>BOOST_REGEX_RECURSIVE
  ;

install $(INSTALL_PATH)/bin : cap2net ;


     
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: How to generate .exe suffix under Cygwin only