mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
d1b4e88d3c
* [libftdi-compat] v0.20 port * Fixed wrong version number in CONTROL file. * Download source archive file instead. * restrict to shared library build only. * Remove dlls from static build. * [libftdi-compat] Update to 1.4. Replace CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS with a def file. Minimize patching. * [libftdi] Rename from libftdi-compat * [libftdi][libftdi1] Restore v0.20 as libftdi, move 1.4 to libftdi1
53 lines
1.2 KiB
Diff
53 lines
1.2 KiB
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 071ae90..b42bbcd 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -4,7 +4,7 @@ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
# Targets
|
|
-set(c_sources ftdi.c)
|
|
+set(c_sources ftdi.c exports.def)
|
|
set(c_headers ftdi.h)
|
|
|
|
add_library(ftdi SHARED ${c_sources})
|
|
@@ -24,7 +24,7 @@ set_target_properties(ftdi-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|
target_link_libraries(ftdi ${LIBUSB_LIBRARIES})
|
|
|
|
# Install
|
|
-if(${UNIX})
|
|
+if(UNIX AND 0)
|
|
|
|
install( TARGETS ftdi
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
@@ -41,23 +41,24 @@ if(${UNIX})
|
|
COMPONENT headers
|
|
)
|
|
|
|
-endif(${UNIX})
|
|
+endif()
|
|
|
|
-if(${WIN32})
|
|
+if(WIN32 OR 1)
|
|
|
|
+ if(BUILD_SHARED_LIBS)
|
|
install( TARGETS ftdi
|
|
- DESTINATION bin
|
|
COMPONENT sharedlibs
|
|
)
|
|
|
|
+ else()
|
|
install( TARGETS ftdi-static
|
|
- DESTINATION bin
|
|
COMPONENT staticlibs
|
|
)
|
|
+ endif()
|
|
|
|
install( FILES ${c_headers}
|
|
DESTINATION include
|
|
COMPONENT headers
|
|
)
|
|
|
|
-endif(${WIN32})
|
|
+endif()
|