On 03/06/2012 12:36 AM, Oliver kfsone Smith wrote:
> I have test and package configurations on my project, I want:
> 
>      cmake .
>      make package
> 
> to run force injection of the "test" target prior to building the 
> package target.
> 
> Can it be done? How? :)

By filing a solution to [1]. ;-)

In the meantime, you might provide a target on your own:

ADD_CUSTOM_TARGET(test_and_pack
  COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target test
  COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target package
)

Regards,

Michael

[1] http://public.kitware.com/Bug/view.php?id=8438
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to