patch to install example config for ftdi_eeprom

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

patch to install example config for ftdi_eeprom

Fabio Rossi
Here is a simple patch:

--- ftdi_eeprom/CMakeLists.txt  2015-11-07 16:19:13.526113529 +0100
+++ ftdi_eeprom/CMakeLists.txt.new      2015-11-07 16:22:31.952124624 +0100
@@ -40,6 +40,7 @@
     target_link_libraries ( ftdi_eeprom ${LIBINTL_LIBRARIES} )
   endif ()
   install ( TARGETS ftdi_eeprom DESTINATION bin )
+  install ( FILES example.conf DESTINATION share/libftdi/find_eeprom )
 else ()
   message ( STATUS "libConfuse not found, won't build ftdi_eeprom" )
 endif ()



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: patch to install example config for ftdi_eeprom

Thomas Jarosch
Hi Fabio,

Am 07.11.2015 um 16:39 schrieb Fabio Rossi:

> Here is a simple patch:
>
> --- ftdi_eeprom/CMakeLists.txt  2015-11-07 16:19:13.526113529 +0100
> +++ ftdi_eeprom/CMakeLists.txt.new      2015-11-07 16:22:31.952124624 +0100
> @@ -40,6 +40,7 @@
>      target_link_libraries ( ftdi_eeprom ${LIBINTL_LIBRARIES} )
>    endif ()
>    install ( TARGETS ftdi_eeprom DESTINATION bin )
> +  install ( FILES example.conf DESTINATION share/libftdi/find_eeprom )
>  else ()
>    message ( STATUS "libConfuse not found, won't build ftdi_eeprom" )
>  endif ()

good idea. I've committed something a bit more complicated: cmake determines
the correct docdir and places the file there. Hopefully this works as intended on Win32.
I've added a little safety net ;)

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...