Re: [CMake] Replace default "make all" with "make help"

2017-08-02 Thread J Decker
On Wed, Aug 2, 2017 at 8:12 AM, DKLind wrote: > Is it possible to replace the default target of the "Unix Makefiles" > generated Makefile of 'all' with 'help'? By default, I mean when no target > is specified when invoking 'make', the 'all' target is assumed. Because cmake works with so many ta

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

2017-08-02 Thread J Decker
On Wed, Aug 2, 2017 at 8:55 AM, Marcus D. Hanwell < marcus.hanw...@kitware.com> wrote: > 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 me

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

2017-08-02 Thread J Decker
On Wed, Aug 2, 2017 at 11:50 AM, David Cole via CMake 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 >

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 David Cole via CMake
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 code, it is used as an approximate proxy for whether or not a mul

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 David Cole via CMake
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** config generators have a list of values in CMAKE_CONFIGURATIO

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 >

[CMake] Replace default "make all" with "make help"

2017-08-02 Thread DKLind
Is it possible to replace the default target of the "Unix Makefiles" generated Makefile of 'all' with 'help'? By default, I mean when no target is specified when invoking 'make', the 'all' target is assumed. -- View this message in context: http://cmake.3232098.n2.nabble.com/Replace-default-mak

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

2017-08-02 Thread Bo Zhou
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 critical, so usually people should specific the actual type