Re: [CMake] What is the default build type?

2017-08-03 Thread Marcus D. Hanwell
On Wed, Aug 2, 2017 at 4:18 PM, J Decker wrote: > > On Wed, Aug 2, 2017 at 8:55 AM, Marcus D. Hanwell > wrote: >> >> On Wed, Aug 2, 2017 at 3:03 AM, Bo Zhou wrote: >>> >>> It depends on the Generator. >>> >>> To the Makefile, the actual

Re: [CMake] What is the default build type?

2017-08-02 Thread Marcus D. Hanwell
On Wed, Aug 2, 2017 at 2:50 PM, David Cole wrote: > Yes, your code is a good example Marcus. It was one of the previous > suggestions on this thread which had example code setting > CMAKE_CONFIGURATION_TYPES. > > I would recommend against setting this variable because in some places > in CMake cod

Re: [CMake] What is the default build type?

2017-08-02 Thread Marcus D. Hanwell
On Wed, Aug 2, 2017 at 1:32 PM, David Cole wrote: > Very cool, Marcus. Thanks for the blog post. > > Florian, when you "message(${CMAKE_CONFIGURATION_TYPES})" it is empty > because you are using a single-configuration CMake generator. Only > Visual Studio and Xcode (and possibly other) **multi** c

Re: [CMake] What is the default build type?

2017-08-02 Thread Marcus D. Hanwell
On Wed, Aug 2, 2017 at 1:32 PM, David Cole wrote: > > Very cool, Marcus. Thanks for the blog post. > > Florian, when you "message(${CMAKE_CONFIGURATION_TYPES})" it is empty > because you are using a single-configuration CMake generator. Only > Visual Studio and Xcode (and possibly other) **multi**

Re: [CMake] What is the default build type?

2017-08-02 Thread Marcus D. Hanwell
On Wed, Aug 2, 2017 at 3:03 AM, Bo Zhou wrote: > It depends on the Generator. > > To the Makefile, the actual type was controlled by the compiler options. > If you don't specific any type, usually it means non-debug and > non-optimization because the CMAKE_CXX_FLAGS is empty as default. This is >

Re: [CMake] default release build flags

2016-05-09 Thread Marcus D. Hanwell
On Thu, Apr 28, 2016 at 2:21 PM, Burlen Loring wrote: > Hi Guys, > > I'd like to discuss changing the defaults of CMAKE_C/CXX_FLAGS_RELEASE on > gcc, and potentially gcc like compilers such as clang and intel. > > Currently the default is "-O3 -DNDEBUG". I would like to discuss changing > this to

Re: [CMake] ctest & git submodules

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 4:50 PM, Brad King wrote: > On 2/26/2013 2:52 PM, Jean-Christophe Fillion-Robin wrote: >> +1 to add these into CTest :) What would be the argument against it ? > > Not every project wants every submodule checked out all the time. > A major use case for them is to have an um

Re: [CMake] ctest & git submodules

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 2:36 PM, Clinton Stimpson wrote: > > Thanks. I may have to do that for now. > > However, it seems to me that ctest already does a > git submodule update --recurse > but its missing the --init flag to deal with changes to the .gitmodules file. > It also misses git submodule

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 2:15 PM, Orion Poplawski wrote: > On 02/26/2013 12:06 PM, Alexander Neundorf wrote: >> >> On Tuesday 26 February 2013, Orion Poplawski wrote: >>> >>> We have some tests that load libraries at run time. How can we specify >>> that LD_LIBRARY_PATH needs to be set? >>> >>> fi

Re: [CMake] Passing CMAKE_TOOLCHAIN_FILE on command line causes CMake warning

2013-02-06 Thread Marcus D. Hanwell
On Wed, Feb 6, 2013 at 5:59 AM, Pat Marion wrote: > Hi, > > I'm emailing about bug 13093 in the backlog. I found comments by Brad that > suggest it's a legitimate warning, but I'm not sure how a project could > avoid the warning. Maybe cmake could send a fatal error if the toolchain > filename d

Re: [CMake] file( DOWNLOAD ) problem

2012-09-28 Thread Marcus D. Hanwell
On Fri, Sep 28, 2012 at 4:42 PM, Robert Dailey wrote: > On Fri, Sep 28, 2012 at 2:58 PM, David Cole wrote: >> On Fri, Sep 28, 2012 at 3:30 PM, Robert Dailey >> wrote: >>> >>> CMake downloads our third party libraries from a central repository >>> and we have a "manifest.cmake" module where we de

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-25 Thread Marcus D. Hanwell
On Tue, Sep 25, 2012 at 2:56 PM, Peter Kümmel wrote: > On 25.09.2012 17:29, Marcus D. Hanwell wrote: >> >> On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel wrote: >>> >>> On 19.09.2012 08:08, Wouter van Kleunen wrote: >>>> >>>> >>>&g

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-25 Thread Marcus D. Hanwell
On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel wrote: > On 19.09.2012 08:08, Wouter van Kleunen wrote: >> >> Peter, >> >> i had 2.8.9-pre3 before, i upgraded to 2.8.9. But only after deleting >> the CMakeLists user file from qtcreator, deleting the build directory >> and restarting qtcreator I was

Re: [CMake] ExternalProject_Add examples

2012-03-17 Thread Marcus D. Hanwell
On Sat, Mar 17, 2012 at 5:03 PM, Bill Lorensen wrote: > Folks, > > I've recently created a number of super builds using CMake's External > Project mechanism. Each external project requires some sort of > download, configuration, build and possibly install. The CMake defines > needed to correctly a

Re: [CMake] Ninja + CMake on a dashboard?

2012-03-14 Thread Marcus D. Hanwell
On Fri, Mar 9, 2012 at 12:34 PM, Bill Hoffman wrote: > On 3/9/2012 12:21 PM, Steven Wilson wrote: >> >> Where does the Ninja generator currently live?   Ie which branch in the >> sources, etc?   I am keen to see support for the Ninja generator on >> Mac/Linux/Windows and would not mind working on

Re: [CMake] Upcoming "What's New in CMake 2.8.7" webinar

2011-12-21 Thread Marcus D. Hanwell
On Wed, Dec 21, 2011 at 3:50 PM, Alexander Neundorf wrote: > On Wednesday 21 December 2011, David Cole wrote: >> The CMake team is hard at work on the 2.8.7 release - we >> announced CMake >> 2.8.7 rc1 on December 8th, and we expect to release the final v

Re: [CMake] debug/optimized include directories

2011-11-04 Thread Marcus D. Hanwell
On Fri, Nov 4, 2011 at 11:16 AM, Robert Dailey wrote: > David, > There is a directory-level property for preprocessor definitions too, right? > So how do the target properties for preprocessor definitions handle those? I > think they are additive aren't they? > I would expect the include directori

Re: [CMake] CMake 2.8.6 available for download

2011-10-05 Thread Marcus D. Hanwell
On Wed, Oct 5, 2011 at 6:53 AM, Peter Kuemmel wrote: > When I install the .sh version over an existing 2.8.4 release > and use "CodeBlocks - Unix Makefiles" QtCreator only shows the > CMakeLists.txt, nothing more. > > Seems the "CodeBlocks - Unix Makefiles" generator is broken in 2.8.6. > > The en

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Marcus D. Hanwell
2011/6/7 Michael Wild : > On 06/07/2011 06:23 PM, Bjørn Forsman wrote: >> 2011/6/7 Michael Wild : >>> On 06/07/2011 03:38 PM, Bjørn Forsman wrote: Why not put find_package(Qt4) in the sub directories where it is actually used? >>> >>> And if it is used in multiple subdirectories? >> >> W

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Marcus D. Hanwell
On Tue, Jun 7, 2011 at 9:46 AM, Michael Wild wrote: > On 06/07/2011 03:21 PM, John Drescher wrote: >>> If you don't care for the macros and want to set up the >>> include-directories and defines yourself, no. Also, it is common to >>> find_package(Qt4) in the top-level CMakeLists.txt file, but the

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Marcus D. Hanwell
On Sun, Jun 5, 2011 at 3:47 PM, Alexander Neundorf wrote: > On Sunday, June 05, 2011 08:43:02 PM Hendrik Sattler wrote: >> Am Sonntag, 5. Juni 2011, 18:16:03 schrieb Michael Wild: >> > On 06/05/2011 05:34 PM, Hendrik Sattler wrote: >> > > Am Sonntag, 5. Juni 2011, 11:45:20 schrieb Stephen Kelly: >

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Marcus D. Hanwell
On Sat, Jun 4, 2011 at 3:17 PM, Stephen Kelly wrote: > Hi, > > I came up with an idea to simplify the creation of export headers for hidden > visibility by using configure_file. > > After implementing it I saw that the idea has come up before :) > > http://www.mail-archive.com/cmake@cmake.org/msg2

Re: [CMake] Dynamic linking doesn't work after install

2011-04-22 Thread Marcus D. Hanwell
On Fri, Apr 22, 2011 at 9:57 AM, David Doria wrote: >> I think the CMake page on RPATHs might be what you are looking for. >> >> http://www.cmake.org/Wiki/CMake_RPATH_handling > > Yea I read that, but I didn't really follow/see how to fix this > problem. Surely there is a "just copy the executable

Re: [CMake] Dynamic linking doesn't work after install

2011-04-22 Thread Marcus D. Hanwell
On Fri, Apr 22, 2011 at 9:48 AM, David Doria wrote: > I have created an executable like this: > >  add_executable(ImageCompleter ${AppSources}) >  target_link_libraries(ImageCompleter ${LibrariesAlwaysUsed}) > >  INSTALL( TARGETS ImageCompleter >    RUNTIME DESTINATION ${INSTALL_DIR} ) > > When I

Re: [CMake] SuperBuild whoes

2011-04-21 Thread Marcus D. Hanwell
On Thu, Apr 21, 2011 at 9:44 AM, Michael Wild wrote: > On 04/21/2011 02:45 PM, David Cole wrote: >> On Thu, Apr 21, 2011 at 4:30 AM, Michael Wild > > wrote: >> >>     On 04/21/2011 06:48 AM, Michael Wild wrote: >>     > Hi all >>     > >>     > I'm trying to set up a Supe

Re: [CMake] QtCreator project generator

2011-03-01 Thread Marcus D. Hanwell
On Tue, Mar 1, 2011 at 9:15 AM, John Drescher wrote: > On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton wrote: >> QT-Creator which currently supports CMake by reading code::blocks project >> files. >> >> The problem with this is code::blocks project files don't write in >> #defines, so the IDE sh

Re: [CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer wrote: > Hi all, > I have searched for the correct way to include the Eigen2 linear algebra > library in my CMake based project. But doing a search has not brought up a > suitable result. Has anyone used Eigen2 in their project? A CMake sample > scrip

Re: [CMake] ExternalProject_Add, race conditions, MSVC_IDE

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 9:50 AM, David Cole wrote: > On Sat, Jan 22, 2011 at 8:15 AM, Pau Garcia i Quiles > wrote: >> >> Hello, >> >> I've been using ExternalProject_Add and I have to say IMHO it's one of >> the best features added to CMake in the last years. It works great for >> me on Linux (ma

Re: [CMake] How to have a target depend on an External Project

2011-01-12 Thread Marcus D. Hanwell
On Wed, Jan 12, 2011 at 12:53 PM, kent williams wrote: > For better or worse (mostly better) we are now heavy users of > ExternalProject.  That module works really well to pull in external > dependencies and get them built. > > ExternalProject_add has a DEPENDS keyword that lets you specify > depe

Re: [CMake] ctest and git submodules

2011-01-12 Thread Marcus D. Hanwell
On Wed, Jan 12, 2011 at 12:16 PM, Gerhard Gappmeier wrote: > Hi, > > my project is stored in a git repo with submodules. > > I'm wondering if ctest is updating also the submodules when running > > ctest Nightly|Continuous etc. > > or just the main repo. > > I believe not, unless I have some other

Re: [CMake] [Titan-developers] Forcing 'out-of-source' build

2010-11-26 Thread Marcus D. Hanwell
On Fri, Nov 26, 2010 at 3:24 PM, Wylie, Brian wrote: > Hi All, > > I want to force an 'out-of-source' build for a small project that I converted > to use Cmake. > > I did a bit of searching and found variants of the following... > > # Make sure the build is out of source > STRING(COMPARE EQUAL "$

Re: [CMake] How to install openbabel python bindings by using the new cmake installer (problem selecting a particular python version).

2010-11-13 Thread Marcus D. Hanwell
On Nov 13, 2010, at 8:57 AM, Michael Hertling wrote: > On 11/12/2010 02:13 PM, Hector Martinez-Seara wrote: >> Dear all, >> I'm trying to install openbabel in linux which in its last version >> (2.3.0) uses cmake installer. I haven't been able to compile it with >> biddings with python 3.1 when us

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-10-31 Thread Marcus D. Hanwell
On Sun, Oct 31, 2010 at 7:30 PM, Campbell Barton wrote: > Hi I saw in the log you added a case for Python 2.7, > Would you be able to add a check for Python 3.x ? > > For Blender 3D we use CMake and only support python 3.x series. I added that (or part of it at least). I suspect it is too late, a

Re: [CMake] cmake for cygwin

2010-10-28 Thread Marcus D. Hanwell
On Thu, Oct 28, 2010 at 8:45 AM, Marco Atzeri wrote: > --- Mer 27/10/10, Marcus D. Hanwell  ha scritto: > >> On Wed, Oct 27, 2010 at 2:38 PM, Alan >> W. Irwin > >> wrote: >> > On 2010-10-26 17:53-0400 Bill Hoffman wrote: >> > >> >> The p

Re: [CMake] cmake for cygwin

2010-10-27 Thread Marcus D. Hanwell
On Wed, Oct 27, 2010 at 2:38 PM, Alan W. Irwin wrote: > On 2010-10-26 17:53-0400 Bill Hoffman wrote: > >> The policy mechanism might not be ideal but in a year or so, all of this >> would go away, and the meantime the patches you have to maintain for cygwin >> ports would become trivial.  The patc

Re: [CMake] Status of clang support?

2010-10-24 Thread Marcus D. Hanwell
On Sun, Oct 24, 2010 at 2:58 PM, Michael Wild wrote: > > On 24. Oct, 2010, at 17:33 , Mateusz Loskot wrote: > >> Hi, >> >> I'm trying to find out what's the status of clang support in CMake. >> What version of CMake is recommended to make proper use of clang 2.8+ >> for building a C++ software, et

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 2:47 PM, Timothy M. Shead wrote: > On 05/16/2010 12:36 PM, Marcus D. Hanwell wrote: > > On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead > <mailto:tsh...@k-3d.com>> wrote: > > > > On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: >

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead wrote: > On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: > > On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead > <mailto:tsh...@k-3d.com>> wrote: > > > > I'd like to do the following: &

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead wrote: > I'd like to do the following: > > # Build external project A > ExternalProject_Add(A ...) > > # Import target B, which is exported by A in AConfig.cmake > ExternalProject_Get_Property(A, BINARY_DIR) > set(A_DIR ${BINARY_DIR}) > fin

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Marcus D. Hanwell
On Wed, Mar 3, 2010 at 5:15 PM, Andrew Maclean wrote: > Unfortunate acronym! > I hope it wasn't like pulling teeth! > > On Thu, Mar 4, 2010 at 7:39 AM, Bill Hoffman > wrote: > > At 4:30, I am going to be interviewed for FLOSS Weekly. > > > > The video is here: > > > > http://live.twit.tv/ > > > >

Re: [CMake] CTEST_COMMAND ignores -j in ctest command script

2010-02-27 Thread Marcus D. Hanwell
On Sat, Feb 27, 2010 at 2:11 PM, Derek Bruening wrote: > I have a ctest command script that runs a series of builds and tests via > ctest_start(), ctest_test(), etc. I want to run the tests in parallel by > default (I'm using cmake 2.8.0). If I pass -j to the ctest command that > invokes the sc

Re: [CMake] CMake finds the wrong Python interpreter on Windows

2010-02-26 Thread Marcus D. Hanwell
On Friday 26 February 2010 10:15:06 Bill Hoffman wrote: > Mathieu Malaterre wrote: > the windows one prefer python > > >>> over any of the named version ones... > >> > >> Or find both independently and compare their versions. OTOH, the problem > >> was the library/executable mismatch, so it doesn

Re: [CMake] [ANNOUNCE] CMake has moved to Git!

2010-02-22 Thread Marcus D. Hanwell
On Monday 22 February 2010 13:46:18 Brad King wrote: > Hi Folks, > > Kitware has moved to distributed version control for CMake in order to > better engage our growing community of developers and users. It will > enhance our process for accepting patches and help give credit to all > contributors

Re: [CMake] CMake 2.8 FindPythonLibs.cmake broken for default python2.5 install

2009-11-30 Thread Marcus D. Hanwell
On Monday 23 November 2009 10:38:27 Marcus D. Hanwell wrote: > On Monday 23 November 2009 10:03:35 Mark Moll wrote: > > Between cmake 2.6.4 and cmake 2.8 the following lines were removed from > > the FIND_LIBRARY(PYTHON_LIBRARY ...) command in FindPythonLibs.cmake: > > &

Re: [CMake] CMake 2.8 FindPythonLibs.cmake broken for default python2.5 install

2009-11-23 Thread Marcus D. Hanwell
users who had trouble linking to Python on 64 bit platforms). Marcus -- Marcus D. Hanwell, Ph.D. R&D Engineer, Kitware Inc. (518) 881-4937 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opens

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Marcus D. Hanwell
James Bigler wrote: > On Thu, Aug 6, 2009 at 12:10 PM, Bill Hoffman > mailto:bill.hoff...@kitware.com>> wrote: > > James Bigler wrote: > > > Well, I was using VS 2005 64 bit with SP 1. I wonder if there > is a similar bug or if there is something else going wrong > such

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Marcus D. Hanwell
James Bigler wrote: > I've just been bitten hard by this issue (many hours of frustration > while attempting to run a demo application that should have "Just > Worked" (TM) ). > > According to this page: > > http://support.microsoft.com/kb/326922 > > > "You should install these versions of the CRT

Re: [CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread Marcus D. Hanwell
James Bigler wrote: > On Thu, Apr 2, 2009 at 7:49 AM, Stephen Collyer > mailto:scoll...@netspinner.co.uk>> wrote: > > > 2009/4/2 Philip Lowman mailto:phi...@yhbt.com>> > > On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer > mailto:scoll...@netspinner.co.uk>> > wrote: > >