[CMake] EXCLUDE_FROM_ALL vs. EXCLUDE_FROM_DEFAULT_BUILD

2016-10-28 Thread Sebastian Kienzl
Hello all, I like "EXCLUDE_FROM_ALL", because with the Make-generator I can define library-targets that will not be built with "make all" *unless* another target depends on it. This way, I can define libraries that will only be built if another target depends on it. Maybe that's not exactly the

Re: [CMake] EXCLUDE_FROM_ALL not working?

2013-02-11 Thread Petr Kmoch
> executable? > > > > If so, then the library will be added because it's required by > dependencies, > > despite your request to exclude it from all. > > > > > > > > -Original Message- > > From: Robert Dailey > > To: CMake

Re: [CMake] EXCLUDE_FROM_ALL not working?

2013-02-08 Thread Robert Dailey
you add later depend on that one? Or an > executable? > > If so, then the library will be added because it's required by dependencies, > despite your request to exclude it from all. > > > > -Original Message- > From: Robert Dailey > To: CMake > Se

Re: [CMake] EXCLUDE_FROM_ALL not working?

2013-02-08 Thread David Cole
4:59 pm Subject: [CMake] EXCLUDE_FROM_ALL not working? I am calling add_library like so: set( project_name mylib ) set( files main.cpp main.h ) set( exclude_flag EXCLUDE_FROM_ALL ) add_library( "${project_name}" SHARED ${exclude_flag} ${files} ) When I generate for Visual Studio 20

[CMake] EXCLUDE_FROM_ALL

2008-01-29 Thread Dawit Alemayehu
Hello, I posted a question about the use of EXCLUDE_FROM_ALL directive in ADD_SUBDIRECTORY a couple of days ago, but got no response ; so I thought I give it a try again. I searched everywhere including the bug reports but i could not find anything on this issue. The closest report I came acros