On 4/24/2013 5:13 PM, Volo Zyko wrote:
We have executables and libraries and a lot of custom targets (the
project is organized so that we export headers during the build - not
the best idea in the world)
Can you consolidate them into larger custom targets that use custom
commands instead?
add_custom_target(create_a_header COMMAND ...) # lots of these are bad
add_custom_target(create_all_headers)
add_custom_command(...) # lots of these that are part of the one
target is good
add_custom_command(...)
Should even make your makefiles faster.
-Bill
--
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