diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c696719e650..4e4724771f3 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -23,6 +23,10 @@ # # ***** END GPL LICENSE BLOCK ***** +if(WITH_LEGACY_OPENGL) + add_definitions(-DWITH_LEGACY_OPENGL) +endif() + add_subdirectory(blender) if(WITH_GAMEENGINE) diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 29ad827c6bc..6a61b93e621 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -236,9 +236,5 @@ if(WITH_OPENSUBDIV) add_definitions(-DWITH_OPENSUBDIV) endif() -if(WITH_LEGACY_OPENGL) - add_definitions(-DWITH_LEGACY_OPENGL) -endif() - blender_add_lib(bf_gpu "${SRC}" "${INC}" "${INC_SYS}")