The branch, master has been updated
       via  eaf42c00bfab5d6bbd8106b11a697ff4f2d7659f (commit)
      from  f554d7cd432d3056b1ca62bf09cc4003bf307912 (commit)


- Log -----------------------------------------------------------------
commit eaf42c00bfab5d6bbd8106b11a697ff4f2d7659f
Author: Yegor Yefremov <[email protected]>
Date:   Fri Jun 13 09:59:39 2025 +0200

    ftdi_eeprom: fix static build
    
    Link to ftdi1-static if only STATICLIBS is enabled.

-----------------------------------------------------------------------

Summary of changes:
 ftdi_eeprom/CMakeLists.txt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ftdi_eeprom/CMakeLists.txt b/ftdi_eeprom/CMakeLists.txt
index 3958b66..38147b5 100644
--- a/ftdi_eeprom/CMakeLists.txt
+++ b/ftdi_eeprom/CMakeLists.txt
@@ -36,7 +36,12 @@ configure_file(
 )
 
 add_executable(ftdi_eeprom main.c)
-target_link_libraries(ftdi_eeprom ftdi1 ${CONFUSE_LIBRARIES})
+if (NOT SHAREDLIBS AND STATICLIBS)
+    target_link_libraries(ftdi_eeprom ftdi1-static)
+else()
+    target_link_libraries(ftdi_eeprom ftdi1)
+endif ()
+target_link_libraries(ftdi_eeprom ${CONFUSE_LIBRARIES})
 if (LIBINTL_FOUND)
     target_link_libraries(ftdi_eeprom ${LIBINTL_LIBRARIES})
 endif ()


hooks/post-receive
-- 
A library to talk to FTDI chips

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

Reply via email to