Skip to content
  • Brad King's avatar
    ENH: Added support for multiple outputs generated by a single custom command. ... · d5719f22
    Brad King authored
    ENH: Added support for multiple outputs generated by a single custom command.  For Visual Studio generators the native tool provides support.  For Xcode and Makefile generators a simple trick is used.  The first output is considered primary and has the build rule attached.  Other outputs simply depend on the first output with no build rule.  During cmake_check_build_system CMake detects when a secondary output is missing and removes the primary output to make sure all outputs are regenerated.  This approach always builds the custom command at the right time and only once even during parallel builds.
    d5719f22