diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-06 00:46:51 +1100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-06 00:48:18 +1100 |
commit | 8cb7f3dd875f4ac74c026da871239c688ab6e61b (patch) | |
tree | 7efb5b847b2b83a159579d1fdc5ff22ad5774dd7 | |
parent | 2ad53a5100bd7d6dc8caf043b74190f20f0387eb (diff) | |
download | external_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.zip external_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.tar.gz external_heimdall-8cb7f3dd875f4ac74c026da871239c688ab6e61b.tar.bz2 |
Actually fix #261 (CMake Linux detection)
-rw-r--r-- | heimdall/CMakeLists.txt | 4 |
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}) |