aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-06 00:46:51 +1100
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-03-06 00:48:18 +1100
commit8cb7f3dd875f4ac74c026da871239c688ab6e61b (patch)
tree7efb5b847b2b83a159579d1fdc5ff22ad5774dd7
parent2ad53a5100bd7d6dc8caf043b74190f20f0387eb (diff)
downloadexternal_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.tar.gz
external_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.tar.bz2
external_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.zip
Actually fix #261 (CMake Linux detection)
-rw-r--r--heimdall/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/heimdall/CMakeLists.txt b/heimdall/CMakeLists.txt
index ef927bf..58ff83b 100644
--- a/heimdall/CMakeLists.txt
+++ b/heimdall/CMakeLists.txt
@@ -14,9 +14,9 @@ if(MINGW)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
endif(MINGW)
-if(LINUX)
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-DOS_LINUX)
-endif(LINUX)
+endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
include_directories(SYSTEM ${LIBUSB_INCLUDE_DIRS})