You can get "install_foo" to build always if you include "ALL" as an arg to add_custom_target.
You cannot use "INSTALL" in an add_dependencies call, though. Rather, you could list the executables that you need built *before* an install could be successful -- that should be equivalent, but requires you to list them explicitly. See http://public.kitware.com/Bug/view.php?id=8438 for more details. HTH, David On Wed, Jun 13, 2012 at 12:02 PM, J Decker <[email protected]> wrote: > how to add a custom target which is marked as build in a visual studio > solution output? > > I really am trying to get away from devenv, when using devenv, it will > build the INSTALL target even though it's not marked for build. But > MSBuild isn't so gracious.... so I added > > ADD_CUSTOM_TARGET( install_foo ) > ADD_DEPENDENCIES( install_foo INSTALL ) > > but target 'install_foo' also isn't marked to be built. > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers >
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
