The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12429 ====================================================================== Reported By: Mathias Gaunard Assigned To: ====================================================================== Project: CMake Issue ID: 12429 Category: CMake Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2011-08-29 11:33 EDT Last Modified: 2011-08-29 11:33 EDT ====================================================================== Summary: Targets cannot be created in an arbitrary scope Description: In certain scenarios I would have found useful to have the ability put a custom command or target should appear into a parent scope.
Unfortunately there seems to be no way to do this, short of abusing the binary_dir argument to add_subdirectory and setting CMP0013 to OLD. I've attached a project that demonstrates how to abuse add_subdirectory to do this. I would like to know how good this technique is and whether it can break in certain situations or with certain generators. Otherwise, what would be the best way to support this feature? ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-08-29 11:33 Mathias GaunardNew Issue 2011-08-29 11:33 Mathias GaunardFile Added: project.tar.bz2 ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
