Subject: CGAL users discussion list
List archive
- From: D Haley <>
- To:
- Subject: Re: [cgal-discuss] cmake build speed
- Date: Tue, 27 Jul 2010 13:45:03 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jEKnl/19131qt4d0Wel2KpD/Sbwb7dqdkgq8kZ2/m6xqoQw9aufvWfYrURZLRwWAJj6XX6MSfG7Hx6pdlC4KcC+i0KR5N23F0nl6CfrBjcm4Rdg2a7NleuNCC6RV8b/NLAa71kIp2qdeFs+EhdXy+Y01SLQFgYoIayvCug/xe2U=;
Hi,
As a small note, even if you do disable optimisations -- If you have multiple
source files, and are working on a unix system with gcc, the "ccache" tool
can be very handy to obtain faster build times...
Also don't forget that if you are building, you can make -j# to parallelize
your build.
--- On Wed, 7/28/10, celil
<>
wrote:
> From: celil
> <>
> Subject: [cgal-discuss] cmake build speed
> To:
>
> Date: Wednesday, July 28, 2010, 8:08 AM
>
> Hello, building a cgal project takes a really long time for
> me. I've noticed
> that the following flags are enabled
>
>
> -- USING CXXFLAGS = '-O3 -march=core2 -w -pipe
> -frounding-math
> -fno-strict-aliasing -O3 -DNDEBUG'
>
>
> and all these optimizations explain why it takes so long.
> Is there a cmake
> option that will disable these optimization flags, so I can
> build my project
> fast in debug mode?
>
> I have the following cmake file:
>
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
> project( algebra_example )
>
> set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
>
> if ( COMMAND cmake_policy )
> cmake_policy( SET CMP0003 NEW )
> endif()
>
> find_package(CGAL REQUIRED COMPONENTS Core )
> include( ${CGAL_USE_FILE} )
> include( CGAL_CreateSingleSourceCGALProgram )
>
> create_single_source_cgal_program( "algebra.cpp" )
>
>
> --
> View this message in context:
> http://cgal-discuss.949826.n4.nabble.com/cmake-build-speed-tp2304044p2304044.html
> Sent from the cgal-discuss mailing list archive at
> Nabble.com.
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
- [cgal-discuss] cmake build speed, celil, 07/27/2010
- Re: [cgal-discuss] cmake build speed, D Haley, 07/27/2010
- Re: [cgal-discuss] cmake build speed, Joachim Reichel, 07/28/2010
- Re: [cgal-discuss] cmake build speed, D Haley, 07/28/2010
- Re: [cgal-discuss] cmake build speed, Joachim Reichel, 07/29/2010
- Re: [cgal-discuss] cmake build speed, D Haley, 07/28/2010
- Re: [cgal-discuss] cmake build speed, Joachim Reichel, 07/28/2010
- Re: [cgal-discuss] cmake build speed, Joachim Reichel, 07/28/2010
- Re: [cgal-discuss] cmake build speed, D Haley, 07/27/2010
Archive powered by MHonArc 2.6.16.