Re: [CMake] Why is Ninja generator disabled by default?

2012-05-18 Thread Bill Hoffman
On 5/18/2012 5:37 PM, Claus Klein wrote: Hi, I downloaded the newest version 2.8 of cmake for MACOS and dit not found the new generator for ninja. So I downloaded the sources and build it myself. It seems to work fine and just 2 times faster than with make. Why is it disabled? See my post h

[CMake] Why is Ninja generator disabled by default?

2012-05-18 Thread Claus Klein
Hi, I downloaded the newest version 2.8 of cmake for MACOS and dit not found the new generator for ninja. So I downloaded the sources and build it myself. It seems to work fine and just 2 times faster than with make. Why is it disabled? With regards Claus -- Powered by www.kitware.com

Re: [CMake] Fwd: Build shared and static in one build

2012-05-18 Thread Eric Noulard
2012/5/18 Totte Karlsson : >> >> set(LIBSRC blah.c bouh.c) >> >> add_library(MyLib SHARED ${LIBSRC}) >> >> add_library(MyLib-static STATIC ${LIBSRC}) >> set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) >> >> should work > > > That works great. > > Not sure what the line >> set_target

Re: [CMake] Secret precompiled header support?

2012-05-18 Thread Robert Dailey
On Fri, May 18, 2012 at 12:07 PM, Bill Hoffman wrote: > On 5/18/2012 12:51 PM, Robert Dailey wrote: > > >> I certainly agree with all of your points but consider this. Even though >> PCH support may not exist on every compiler, every company that wants to >> add PCH support to CMake through script

Re: [CMake] Fwd: Build shared and static in one build

2012-05-18 Thread Totte Karlsson
set(LIBSRC blah.c bouh.c) add_library(MyLib SHARED ${LIBSRC}) add_library(MyLib-static STATIC ${LIBSRC}) set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) should work That works great. Not sure what the line > set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) Is

Re: [CMake] Secret precompiled header support?

2012-05-18 Thread Bill Hoffman
On 5/18/2012 12:51 PM, Robert Dailey wrote: I certainly agree with all of your points but consider this. Even though PCH support may not exist on every compiler, every company that wants to add PCH support to CMake through scripting logic is essentially doing the same work over and over again.

Re: [CMake] Secret precompiled header support?

2012-05-18 Thread Robert Dailey
On Fri, May 18, 2012 at 9:51 AM, Bill Hoffman wrote: > On 5/17/2012 12:50 PM, Robert Dailey wrote: > >> Normally when you encounter "professional" software (that is, software >> that you pay for, that is generally well designed and maintained by a >> single entity), it has a consistent feel. Open

Re: [CMake] CMake 2.8.8-rc1, Ninja generator, and clean target

2012-05-18 Thread Nicolas Desprès
On Wed, May 16, 2012 at 11:54 PM, Peter Collingbourne wrote: > On Mon, Apr 02, 2012 at 02:21:10PM +0200, Nicolas Desprès wrote: >> Hi, >> >> It looks like an issue in the generator. The symlink is created as a >> side effect of a rule and not mentioned in the output files. That's >> why it does no

Re: [CMake] How to handle a submodule existing twice in a project?

2012-05-18 Thread Nicolas Desprès
On Fri, May 18, 2012 at 1:15 AM, David Doria wrote: >> Yeah. Well, in that case I'd simply check for the TestB target thats >> defined in TestB/CMakeLists.txt as condition for the top-levels >> add_subdirectory: >> >> if(NOT TARGET TestB) >>   add_subdirectory(TestB) >> endif() >> >> That should w

Re: [CMake] Secret precompiled header support?

2012-05-18 Thread Bill Hoffman
On 5/17/2012 12:50 PM, Robert Dailey wrote: Normally when you encounter "professional" software (that is, software that you pay for, that is generally well designed and maintained by a single entity), it has a consistent feel. Open source naturally can feel inconsistent because of the large numbe