delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/26/04:46:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=HXDufFu69/nVPcTq
EpPf0lVwh/sbTmELein5Wxaa+S8uI102atano1IoWTQKK2MbH2kMjQjJVFAuGPmr
0ygp34QuuYNUU4+JTYzcBq8sXs3sKcZzWffm83eouQVhDGE+zKpSVLIsR0xv6A51
+f0iC30ZMykepabbdvhmC8ItTxk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=yLm0KO2z5z+jW6LONFVVb9
agx+4=; b=u7N1qWFXyKDWdzhIhp5Qi6ZiV+v7+93mWilT8JRKniFpdGELnsczls
yxhUju20phULT0u6OA697mrcIGYh1N28e9V4Af94mM4R/7qmvvoU09uYeWwf1Rjg
YSZ+DGDHtUTwzpLTPnsPOf+KYe3QFy+2nRgyx66W0vy3rASJgeK0Q=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Csaba, Raduly, raduly, H*f:sk:HV07eWu
X-HELO: mail-qk0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0d3QMnAnST8iG2OI3EKeMYfyVZWxJfYQBQuxHaSW2Ik=; b=jnarJwduAMM0rA7Dr334dPC3HVKShum/Ajpy4sYw/kUa2K8Tbyqe9GKr7VfEYRvH1N kMOph2DIxBHJkPOoaUwlUpWkd2Dggpr9d4FuFtIeapjzKd//+9LPyewBFPezjzbKTluq EJqtUfPm5FUwnphPZubKDx7BcUqT+Tif2af+5lAKhYPX3dgF9OSH+omRIrT05cX9s7WA HOFloHUITqTWru0bVI2rJVCMYkERT8Y2Rj0WZtor8ekzCGbe3A9MktGBuOWIiXfRTCNf kaeK8apCOF4jVZwLISbxGyCnGLnZl1CG9CKf9AB4kS96yECihtCg8UaqEERU7Db3QIdV NhGA==
X-Gm-Message-State: AEkooutKTosxFs/Q3CXrwnmlRq7okbo8k47EAWM3fdwnXaadeNRJ0/8O3SHioPOLvD0ZSg==
X-Received: by 10.55.204.3 with SMTP id r3mr28486119qki.91.1469522743940; Tue, 26 Jul 2016 01:45:43 -0700 (PDT)
Subject: Re: problem building with cmake under cygwin (need clang)
To: cygwin AT cygwin DOT com
References: <5796B2A7 DOT 8060002 AT molconn DOT com> <00cd1dc9-e9bc-1ae0-4cbd-eb0a72c79e93 AT gmail DOT com> <CAEhDDbD_g+tD3PzW_qcUDA+Y-YB=HV07eWuCPy_ha0n4tE96GQ AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <a131bff5-fea2-a515-64d9-e6a4468156f0@gmail.com>
Date: Tue, 26 Jul 2016 10:45:25 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CAEhDDbD_g+tD3PzW_qcUDA+Y-YB=HV07eWuCPy_ha0n4tE96GQ@mail.gmail.com>
X-IsSubscribed: yes

On 26/07/2016 09:47, Csaba Raduly wrote:
> On Tue, Jul 26, 2016 at 8:16 AM, Marco Atzeri  wrote:
>>
>>
>>  CMake Error at CMakeLists.txt:22 (message):
>>    Compiler does not support C++1z standard
>>
>> if you look on CMakeLists.txt you will find is expecting a flag
>> as "-std=gnu++1z"  that looks a bit strange for a not gnu compiler
>
> Clang implements many of GCC's extensions. -std=gnu++1something means
> "C++ 1something with GNU extensions". Clang understands that just
> fine.
>
> Csaba
>

may be, but it seems not so in this case

-- Performing Test COMPILER_SUPPORTS_CXX1Z - Failed
CMake Error at CMakeLists.txt:22 (message):
   Compiler does not support C++1z standard

I am skeptical of all this portion
---------------------------------------------------------
CHECK_CXX_COMPILER_FLAG("-stdlib=libc++" COMPILER_SUPPORTS_LIBCXX)
if(NOT COMPILER_SUPPORTS_LIBCXX)
     message(FATAL_ERROR "libc++ not installed or libc++ not supported 
by clang++")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

CHECK_CXX_COMPILER_FLAG("-std=gnu++1z" COMPILER_SUPPORTS_CXX1Z)
if(NOT COMPILER_SUPPORTS_CXX1Z)
     message(FATAL_ERROR "Compiler does not support C++1z standard")
endif()
add_compile_options("-std=gnu++1z")
----------------------------------------------------------

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019