summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-03-17 10:09:38 +0100
committerAndreas Schneider <mail@cynapses.org>2010-03-17 10:09:38 +0100
commita8be476ea953989499a3e9ffc3b2b25be4d4528c (patch)
treea4a0e5dec72b5c8433ead273a4c5b60d3dfdcfbf
parentb9f65b574050ec35310b4749251c3cf77b7ca382 (diff)
Build examples only on the Linux plattform.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f616221..3d8d1143 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,7 @@ add_subdirectory(libssh)
# build samples
include_directories(${CMAKE_SOURCE_DIR}/include)
-if (UNIX AND NOT WIN32)
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_subdirectory(examples)
+endif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
-endif (UNIX AND NOT WIN32)