--- CMakeDependenciesConfig.txt.orig	2016-01-11 16:27:14 UTC
+++ CMakeDependenciesConfig.txt
@@ -2,11 +2,13 @@ IF(WIN32)
 	set(Ogre_INCLUDE_DIRS "include/Ogre" CACHE PATH "The ogre include path to use")
 	set(Ogre_LIBRARY_DIRS "lib" CACHE PATH "The ogre lib path to use")
 	set(Ogre_LIBRARIES    "OgreMain" CACHE STRING "The ogre lib to link against")
+	if(Caelum_BUILD_SAMPLES)
 	set(Ois_INCLUDE_DIRS "include/ois" CACHE PATH "The OIS include path to use")
 	set(Ois_LIBRARY_DIRS "lib" CACHE PATH "The OIS lib path to use")
 	set(Ois_LIBRARIES    "ois" CACHE STRING "The ogre lib to link against")
 	# add includes to check directories
 	set(CMAKE_REQUIRED_INCLUDES ${Ogre_INCLUDE_DIRS} ${Ois_INCLUDE_DIRS})
+	endif(Caelum_BUILD_SAMPLES)
 
 	# check for libs and include files we want to use
 	CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_INCLUDES)
@@ -20,7 +22,9 @@ IF(WIN32)
 ELSEIF(UNIX)
 	find_package(PkgConfig)
 	PKG_CHECK_MODULES  (Ogre OGRE REQUIRED)
+	if(Caelum_BUILD_SAMPLES)
 	PKG_CHECK_MODULES  (Ois  OIS  REQUIRED)
+	endif(Caelum_BUILD_SAMPLES)
 	# add includes to check directories
 	set(CMAKE_REQUIRED_INCLUDES ${Ogre_INCLUDE_DIRS} ${Ois_INCLUDE_DIRS})
 	# check for libs and include files we want to use
@@ -44,6 +48,7 @@ IF(NOT WIN32)
 		message("could not find the Ogre includes. Please install them.")
 	endif()
 
+	if(Caelum_BUILD_SAMPLES)
 	CHECK_INCLUDE_FILE_CXX(OIS/OIS.h HAVE_OIS_DIR_INCLUDES)
 	if(HAVE_OIS_DIR_INCLUDES)
 		set(OIS_INCLUDE "OIS/OIS.h")
@@ -63,4 +68,5 @@ IF(NOT WIN32)
 	else()
 	  set(OIS_USING_DIR FALSE)
 	endif()
+	endif(Caelum_BUILD_SAMPLES)
 endif()
