소스 검색

Merge pull request #186 from libRocket/feature/scan-dependencies-dir

Checks existing dependencies directory for freetype and boost development files
David Wimsey 11 년 전
부모
커밋
6a351c1efe
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  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 ====================