Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:A:DVD
exiv2
gcc-version-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc-version-check.patch of Package exiv2
From 04052ceb8609ea9c92095e61807efde2166cb6f5 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Mon, 3 Jul 2017 16:53:29 +0200 Subject: [PATCH] Do not use GCC_MINOR in CMakeLists.txt "gcc -dumpversion" with GCC >= 7 only prints "7", thus GCC_MINOR is not defined. That results in: CMake Error at CMakeLists.txt:86 (list): list index: 1 out of range (-1, 0) --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 130cb56e..aab5888f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,9 +83,8 @@ IF( MINGW OR UNIX ) execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) string(REGEX MATCHALL "[0-9]+" GCC_VERSION_COMPONENTS ${GCC_VERSION}) list(GET GCC_VERSION_COMPONENTS 0 GCC_MAJOR) - list(GET GCC_VERSION_COMPONENTS 1 GCC_MINOR) - message(STATUS Compiler: ${COMPILER} " Major:" ${GCC_MAJOR} " Minor:" ${GCC_MINOR}) + message(STATUS Compiler: ${COMPILER} " Major:" ${GCC_MAJOR}) IF ( CYGWIN OR ( ${GCC_MAJOR} GREATER 5 )) ADD_DEFINITIONS( -std=gnu++98 ) # to support snprintf
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor