From ec0de7f6f6c4845b5c4e54ea326b29f1ac28952b Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Fri, 12 Dec 2014 17:53:33 +0100 Subject: [PATCH] rdtk: build samples only if WITH_SAMPLE is enabled --- rdtk/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rdtk/CMakeLists.txt b/rdtk/CMakeLists.txt index 35b005212..063f19576 100644 --- a/rdtk/CMakeLists.txt +++ b/rdtk/CMakeLists.txt @@ -66,8 +66,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) add_subdirectory(include) add_subdirectory(librdtk) -if(WITH_X11) - add_subdirectory(sample) +if(WITH_SAMPLE) + if(WITH_X11) + add_subdirectory(sample) + endif() endif() # Exporting