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=xngVRa4s/tJZTTqh ECSXcLe1tlwKHKtjLlea/Pte5WnU2vSuuIXE3YrODwl9W4t55/BDsBFHdf8ovZXV LU2MTAar0X/za//EcqXULEz8HMvf2hs8HdFV1AL1v025leKmGeNwxhgFNRvwAw+T jCr7jNxi5lp+umLK/duRveBbxzI= 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=VqG65dWafjQXWHl1GRA0qx K17GU=; b=RZ5Z+kn5+OM6gWg02rUFk1kI+0F5gfLD2HjG8ZcwxDEbO1ciuHFyjc p9Dtfnbdk7ed7yiHconlbNPQ11CveJrOaueRfzaYMbtYQ27HzjrHotpDTyq3CptI btZThA2mP8k8/KQZqVxfk+Tz1/SlvXYHVS6AUxICAqPYNTdCXywyo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=quiring, Quiring, Hx-languages-length:465, H*M:online X-HELO: mailout09.t-online.de Subject: Re: How to use CMake with cygwin/mingw toolchain? To: cygwin AT cygwin DOT com References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Fri, 20 Oct 2017 20:34:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Am 20.10.2017 um 14:50 schrieb Peter Quiring: > The mingw versions have x86_64-w64-mingw32- or i686-w64-mingw32- added > to their exe names. Currently I just use these directly but I want to > use cmake. You can just tell cmake to use them: cmake -D CMAKE_C_COMPILER=x86_64-w64-mingw32-gcc But for the full story, you should really read the "cross compiling" chapter of cmake's documentation. -- 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