Looks to me like the one chunk of code that actually refers to the
target property:
if(target->GetPropertyAsBool("EXCLUDE_FROM_DEFAULT_BUILD"))
{
return false;
}
should be changed to:
if(target->GetPropertyAsBool("EXCLUDE_FROM_DEFAULT_BUILD") ||
target->GetPropertyAsBool(
Dave, Bill? Anyone know what the difference is intended to be between
EXLUDE_FROM_ALL vs EXCLUDE_FROM_DEFAULT_BUILD?
/Johan
On Mon, Aug 1, 2011 at 6:57 PM, Johan Björk wrote:
> And another update while at it.
>
> The following cmake file illustrates the issue:
>
> FILE(WRITE foo.c "")
> add_li
And another update while at it.
The following cmake file illustrates the issue:
FILE(WRITE foo.c "")
add_library(foo EXCLUDE_FROM_ALL foo.c)
set_target_properties(foo PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
FILE(WRITE foobar.c "")
add_executable(foobar foobar.c)
target_link_libraries(foobar foo)
and I just found
The EXCLUDE_FROM_DEFAULT_BUILD property is used by the visual studio
generators. If it is set to 1 the target will not be part of the default
build when you select "Build Solution".
Anyone know why it is different from EXLUDE_FROM_ALL ?
-Johan
On Mon, Aug 1, 2011 at 5:05 PM, J
Hi all,
Anyone know anything about this? I'm seeing the same issue with MSVC 2008 +
cmake 2.8(.?)
add_library(foo .. EXCLUDE_FROM_ALL ..)
-Johan
On Tue, May 3, 2011 at 4:59 PM, Andrea Galeazzi wrote:
> I've a project made up of multiple executable target:
> add_executable(TARGET_NAME1 ${SOUR
I've a project made up of multiple executable target:
add_executable(TARGET_NAME1 ${SOURCES1})
add_executable(TARGET_NAME2 ${SOURCES2})
add_executable(TARGET_NAME3 ${SOURCES3})
...
Now I'd like to build just only TARGET_NAME1 when I press F7 (build
solution) in visual studio. I tried to