Skip to content

Commit

Permalink
libftdi: fix packagekit when useing cmake
Browse files Browse the repository at this point in the history
cmake is missing the variable VERSION. VERSION is used in libftdi.pc.in. When other packages
using a min version they fail detecting libftdi.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
  • Loading branch information
lynxis committed Dec 22, 2014
1 parent c79483e commit 4f000c6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions libs/libftdi/patches/101-fix-cmake-version-packagekit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt 2014-12-22 19:32:27.768281786 +0100
+++ b/CMakeLists.txt 2014-12-22 21:23:44.751158291 +0100
@@ -79,6 +79,9 @@
set(CPACK_SOURCE_IGNORE_FILES "\\\\.git")
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})

+set(PACKAGE libftdi)
+set(VERSION ${VERSION_STRING})
+
# Subdirectories
if(${UNIX})
set(CPACK_SET_DESTDIR "ON")
@@ -100,8 +103,6 @@
if(DOCUMENTATION AND DOXYGEN_FOUND)

# Set variables
- set(PACKAGE libftdi)
- set(VERSION ${VERSION_STRING})
set(top_srcdir ${CMAKE_SOURCE_DIR})

# Find doxy config

0 comments on commit 4f000c6

Please sign in to comment.