GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

17 versions of CMake.

ProgramAgeSizeByWWWSummary
CMake 3.8.0-r1 1030  1893
A cross-platform make system
view entry at GitHub | download recipe.bz2 file
Recipe
Resources/BuildInformation
Resources/Dependencies
Resources/Description
replace-isystem_with-I.patch
From a84d20abe6bc68f8d1a597a22af1ca98d62a5ce4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony at googlemail.com>
Date: Fri, 26 Aug 2016 12:14:12 +0200
Subject: [PATCH] GNU.cmake: replace -isystem by -I
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

since gcc6 we see many c++ based packes failing with:

| fatal error: stdlib.h: No such file or directory

a fix from gcc is not to expect [1] so work around

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

Upstream-Status: Pending

Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
---
 Modules/Compiler/GNU.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake
index c2d393d..9d1477d 100644
--- a/Modules/Compiler/GNU.cmake
+++ b/Modules/Compiler/GNU.cmake
@@ -53,6 +53,10 @@ macro(__compiler_gnu lang)
   set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> \
<INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
   set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> \
<FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
   if(NOT APPLE OR NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4) # work around \
#4462
-    set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
+    if("${lang}" STREQUAL "CXX")
+      set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-I ")
+    else()
+      set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
+    endif()
   endif()
 endmacro()
-- 
CMake 3.6.2-r2 1036  1950 Hish...
A cross-platform make system
CMake 3.6.1-r1 1305  1052 Luca...
A cross-platform make system
CMake 3.5.1-r1 1425  1059 Hugo...
A cross-platform make system
CMake 2.8.11-r2 2247  1037 Luca...
A cross-platform make system
CMake 2.8.10-r1 2540  971 Luca...
A cross-platform make system
CMake 2.8.5-r1 3093  945 Fowl...
A cross-platform make system
CMake 2.8.2-r1 3475  952 JPau...
A cross-platform make system
CMake 2.8.0-r1 3750  936 Mich...
A cross-platform make system
CMake 2.6.4-r1 3884  992 Ősi...
A cross-platform make system
CMake 2.6.3-r1 3999  965 Giam...
A cross-platform make system
CMake 2.6.2-r1 4012  973 Giam...
A cross-platform make system
CMake 2.6.0-r1 4012  941 Jona...
A cross-platform make system
CMake 2.4.8-r1 4012  943 Giam...
A cross-platform make system
CMake 2.4.7-r1 4012  946 Jona...
A cross-platform make system
CMake 2.4.3-r2 4012  530 Kosh (none)
CMake 2.2.3-r1 4012  404 (none)