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=bBonwx2cX/ue0qKh 8hTcCZV9ZK7kHyeRBNjJHSxoRWQ9Hj03szsgORhk6HfzErI6qh2umtcmvjlgtFvp r5RMMssv3R3x8KSBrGk4MKOb3Lbm25GwfEzPBVZKeejfrMJjBsdjNm9n4BnQNH/T IC09ez1NRcG81rIqHgbgHPcs3xw= 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=I4LJiCWXKxdOMEnDa+hi3/ WQ6Vk=; b=dlCqeaq5mt3jn+5BzDaxw0TOqfvL12IlzTQNFos9sXVKPzRZHhilIs afBXDXJhrWvbaFy3uMyTC/muKdwUhNrTfoMEoIvKgvI9RU+6W3l/iy2AQi+ik68Z h1cPuFLfMxzceUKuo7uDBOsSXApFszY0jvFa/ZmRuj1/x8j+Yw/NQ= 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=-2.2 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=sk:add_com, sk:check_c, sk:CHECK_C, Steps X-HELO: mail-wm0-f52.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=qV/CMJJcKCLmUjOoxFqyW0ma0ixnR9Cuqscx6JNz4Cc=; b=d/I7bMVPmScC28em6VYCGjkmtsXM4M4LKhHsKQsB9Fp/6WeVRrzjpgWZRYUvukt0Eb NU84hX9a1+tXKHG9aY3XyfFnX7rQaWoUYrCzjY1R/9RBh7As6c/53xqH6bNdQQ8pYKNG /OmZdve8zn/eyy5F7DLc+j/1V8KulId0OWQhmyzxehWSrDflPe+5H8FOU0gAejRGeP/K NL5rznEY6ahY5+KQxJaF3ShbhswObvU34FNsF404BMj2FKKOW6z+fuiBluHW1vPTzmR+ OsjLBl5yF+qSWfa30BTuyw2hIoMaDLa/nZ5x8n/Myl9uJw2UKtq7JePbYDZeghY1tefg vZmg== X-Gm-Message-State: AEkoouvHepe+7hTZEJHDjg1aNOv3kul37O7UoRX8tuJtBjvAvCHm1+gSdk9VhCnovXR5pg== X-Received: by 10.28.183.134 with SMTP id h128mr27002424wmf.7.1469549239980; Tue, 26 Jul 2016 09:07:19 -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> <57977D6D DOT 7050203 AT molconn DOT com> From: Marco Atzeri Message-ID: Date: Tue, 26 Jul 2016 18:06: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: <57977D6D.7050203@molconn.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 26/07/2016 17:10, LMH wrote: > Csaba Raduly wrote: >> >> Steps for building in a separate build directory: >> >> mkdir _build >> cd _build >> cmake .. >> >> Csaba >> > > I looked for the syntax for this when I first started. I assumed the the > author put the CMakeLists.txt file in the right place. I almost never > have my make file in the src directory when using gnu make, so this > looked the same to me. I didn't find any doc about how to have the > CMakeLists.txt and the src in different directories. > Csaba was clear but it seems you are misunderstanding, the call to cmake is cmake [options] so I will put together his suggestion and Tony's one: $ git pull https://bitbucket.org/tomilov/quickhull/src $ ls src/ CMakeLists.txt include README.md src test $ mkdir build $ cd build $ cmake -DCMAKE_CXX_COMPILER=clang ../src the "build" directory is in this case parallel to the "src" one. Unfortunately it will fail on "Compiler does not support C++1z standard" and you will need to modify the original CMakeLists.txt. I cut ------------------------------------------------------------------- -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") ------------------------------------------------------------------- But there are other issues on the road; I passed some with cmake -DCMAKE_CXX_COMPILER=clang -DCMAKE_CXX_FLAGS="-std=gnu++1z -I/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/ -I/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/x86_64-pc-cygwin/" ../src but the build stop here -------------------------------------------------------------------------- /pub/temp/src/src/simple_use.cpp:146:16: fatal error: no member named 'chrono' in namespace 'std' using std::chrono::duration_cast; ~~~~~^ 15 warnings and 1 error generated. make[2]: *** [CMakeFiles/qh.dir/build.make:66: CMakeFiles/qh.dir/src/simple_use.cpp.o] Error 1 --------------------------------------------------------------------------- and I am out of my C++ knowledge Regards Marco -- 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