summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-21 04:53:43 +0100
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-21 04:53:43 +0100
commitd0526a3b74a003dfc6f805682693be9173ffcd88 (patch)
tree477de88d52d9555e3b5072b4a798b6dffc7e90d1
parentActually fix #261 (CMake Linux detection) (diff)
downloadHeimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.gz
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.bz2
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.lz
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.xz
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.tar.zst
Heimdall-d0526a3b74a003dfc6f805682693be9173ffcd88.zip
-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