Michael 7 роки тому
батько
коміт
e6f8240363
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      Build/CMakeLists.txt
  2. 1 1
      Samples/basic/sfml2/src/main.cpp

+ 1 - 1
Build/CMakeLists.txt

@@ -678,7 +678,7 @@ endif(NOT BUILD_FRAMEWORK)
 	endif()
 
 	message("-- Can SFML 2.x sample be built")
-	find_package(SFML 2 COMPONENTS graphics window system)
+	find_package(SFML 2 COMPONENTS graphics window system main)
 	if(NOT SFML_FOUND)
 		message("-- Can SFML 2.x sample be built - no")
 	else()

+ 1 - 1
Samples/basic/sfml2/src/main.cpp

@@ -71,7 +71,7 @@ int main(int argc, char **argv)
 
 	// NOTE: if fonts and rml are not found you'll probably have to adjust
 	// the path information in the string
-	ShellFileInterface FileInterface("../../assets/");
+	ShellFileInterface FileInterface("../Samples/assets/");
 
 	if(!MyWindow.isOpen())
 		return 1;