From a8be476ea953989499a3e9ffc3b2b25be4d4528c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 17 Mar 2010 10:09:38 +0100 Subject: [PATCH] Build examples only on the Linux plattform. --- CMakeLists.txt | 4 ++-- 1 file 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)