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
> 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
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
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
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