diff options
author | ambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140> | 2011-10-14 00:07:03 +0400 |
---|---|---|
committer | ambrop7 <ambrop7@1a93d707-3861-5ebc-ad3b-9740d49b5140> | 2011-10-14 00:07:03 +0400 |
commit | 79ad18a36a32b4b274ddf848d42cc154f9b063a5 (patch) | |
tree | e9f44e8f14a052ea8743f97542b965785b53cb6f /CMakeLists.txt | |
parent | 7b6c4475ba88f3e0021565d2f870301ca2ff9c80 (diff) |
CMakeLists.txt: don't try to build NCD on Windows, fix error message
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df76a07..6de55d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,10 +29,14 @@ build_switch(CLIENT 1) build_switch(FLOODER 1) build_switch(TUN2SOCKS 1) build_switch(UDPGW 1) -build_switch(NCD 1) +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + build_switch(NCD 1) +else () + build_switch(NCD 0) +endif () if (BUILD_NCD AND NOT (CMAKE_SYSTEM_NAME STREQUAL "Linux")) - message(FATAL_ERROR, "NCD is only available on Linux") + message(FATAL_ERROR "NCD is only available on Linux") endif () if (BUILD_CLIENT OR BUILD_SERVER OR BUILD_NCD) |