Browse Source

Check the Dependencies directory for Freetype and Boost

David Wimsey 11 years ago
parent
commit
455804140e
1 changed files with 12 additions and 0 deletions
  1. 12 0
      Build/CMakeLists.txt

+ 12 - 0
Build/CMakeLists.txt

@@ -40,6 +40,18 @@ include(TestForANSIForScope)
 include(TestForANSIStreamHeaders)
 include(TestForSTDNamespace)
 
+#===================================
+# Provide hints as to where depends=
+# might be found                   =
+#===================================
+
+if(NOT DEFINED ENV{FREETYPE_DIR})
+	set(ENV{FREETYPE_DIR} "${PROJECT_SOURCE_DIR}/../Dependencies")
+endif()
+
+if(NOT DEFINED ENV{Boost_DIR})
+	set(ENV{Boost_DIR} "${PROJECT_SOURCE_DIR}/../Dependencies")
+endif()
 
 #===================================
 # Build options ====================