summaryrefslogtreecommitdiff
blob: 0bf886b27d7c22194129a674a0ace3a6644e1595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -519,7 +519,9 @@
 endif ()
 
 # Setup samples
-add_subdirectory(Samples)
+if (OGRE_BUILD_SAMPLES)
+    add_subdirectory(Samples)
+endif ()
 
 #Add android JNI binding
 if(ANDROID)