aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-21 14:53:43 +1100
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-21 14:53:43 +1100
commitd0526a3b74a003dfc6f805682693be9173ffcd88 (patch)
tree477de88d52d9555e3b5072b4a798b6dffc7e90d1
parent8cb7f3dd875f4ac74c026da871239c688ab6e61b (diff)
downloadexternal_heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.zip
external_heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.gz
external_heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.bz2
Do not use static libusb-1.0 by default on Linux.
-rw-r--r--heimdall/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/heimdall/CMakeLists.txt b/heimdall/CMakeLists.txt
index 58ff83b..95cdbe2 100644
--- a/heimdall/CMakeLists.txt
+++ b/heimdall/CMakeLists.txt
@@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 2.8.4)
project(heimdall)
-set(libusb_USE_STATIC_LIBS YES)
+if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT DEFINED libusb_USE_STATIC_LIBS))
+ set(libusb_USE_STATIC_LIBS YES)
+endif((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT DEFINED libusb_USE_STATIC_LIBS))
+
find_package(libusb REQUIRED)
set(LIBPIT_INCLUDE_DIRS