--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -536,7 +536,9 @@ endif () # Setup samples -add_subdirectory(Samples) +if (OGRE_BUILD_SAMPLES) + add_subdirectory(Samples) +endif () #Add android JNI binding if(ANDROID)