[Bf-blender-cvs] [e7c4eddace2] blender2.8: Add fatal error in CMake when trying to build WITH_GAMEENGINE but without WITH_LEGACY_OPENGL

Bastien Montagne noreply at git.blender.org
Fri Apr 14 17:17:23 CEST 2017


Commit: e7c4eddace27272ba4d14f7e2fd0a39256e3c656
Author: Bastien Montagne
Date:   Fri Apr 14 17:16:15 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBe7c4eddace27272ba4d14f7e2fd0a39256e3c656

Add fatal error in CMake when trying to build WITH_GAMEENGINE but without WITH_LEGACY_OPENGL

This won't work currently.

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19e13612baa..9789e563681 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -681,6 +681,10 @@ if(NOT WITH_GAMEENGINE AND WITH_PLAYER)
 	message(FATAL_ERROR "WITH_PLAYER requires WITH_GAMEENGINE")
 endif()
 
+if(WITH_GAMEENGINE AND NOT WITH_LEGACY_OPENGL)
+	message(FATAL_ERROR "WITH_GAME_ENGINE requires WITH_LEGACY_OPENGL")
+endif()
+
 if(NOT WITH_AUDASPACE)
 	if(WITH_OPENAL)
 		message(FATAL_ERROR "WITH_OPENAL requires WITH_AUDASPACE")




More information about the Bf-blender-cvs mailing list