From d0526a3b74a003dfc6f805682693be9173ffcd88 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Sat, 21 Mar 2015 14:53:43 +1100 Subject: Do not use static libusb-1.0 by default on Linux. --- heimdall/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.1