!15 glew cmake project requires a c++ compiler

From: @meng-wenhua 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-01-13 09:46:47 +00:00 committed by Gitee
commit 34916b4e2f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From f5f69b25eb3495775aef94f443487a4295c0a57e Mon Sep 17 00:00:00 2001
From: Olli Kallioinen <olli.kallioinen@iki.fi>
Date: Fri, 29 Dec 2017 16:54:53 +0200
Subject: [PATCH] Fix for issue #169 (glew cmake project requires a c++
compiler)
---
build/cmake/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt
index 5081e0f..d724e10 100644
--- a/build/cmake/CMakeLists.txt
+++ b/build/cmake/CMakeLists.txt
@@ -2,7 +2,7 @@ if ( NOT DEFINED CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE Release CACHE STRING "Build type" )
endif ()
-project (glew)
+project (glew C)
cmake_minimum_required (VERSION 2.8.12)
--
2.37.3.windows.1

View File

@ -1,6 +1,6 @@
Name: glew
Version: 2.1.0
Release: 7
Release: 8
Summary: The OpenGL Extension Wrangler Library
License: BSD-3-Clause and MIT
URL: http://glew.sourceforge.net
@ -14,6 +14,7 @@ Obsoletes: libGLEW < %{version}-%{release}
Patch6000: backport-0001-Include-description-of-glew-in-README.md.patch
Patch6001: backport-0001-Fixed-compilation-with-current-mesa-versions.patch
Patch6002: backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch
%description
OpenGL Extension Wrangler Library (GLEW) is a cross-platform
@ -64,6 +65,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%doc doc/*
%changelog
* Sat Jan 7 2023 mengwenhua <mengwenhua@xfusion.com> - 2.1.0-8
- glew cmake project requires a c++ compiler
* Fri Jan 6 2023 mengwenhua<mengwenhua@xfusion.com> - 2.1.0-7
- Fixed compilation with current mesa versions.