[CMake] EXCLUDE_FROM_ALL not working?

Robert Dailey rcdailey.lists at gmail.com
Fri Feb 8 16:59:07 EST 2013


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 2008, I check the build
configuration and the mylib project is still setup to build when I
invoke Build Solution. Why isn't this flag working?


More information about the CMake mailing list