The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15658 ====================================================================== Reported By: Ben Boeckel Assigned To: ====================================================================== Project: CMake Issue ID: 15658 Category: CMake Reproducibility: have not tried Severity: minor Priority: normal Status: new Target Version: CMake 3.4 ====================================================================== Date Submitted: 2015-07-21 11:19 EDT Last Modified: 2015-07-21 11:19 EDT ====================================================================== Summary: Allow generator expressions in add_custom_command (and add_custom_target) Description: Now that LOCATION is disallowed, using a target path as an argument to a custom command is not possible without warnings (or making CMP0026 OLD).
At least OUTPUT, COMMAND, MAIN_DEPENDENCY, DEPENDS, WORKING_DIRECTORY, and SOURCES (for a_c_t) should expand generator expressions. Some may already do so via properties being genex-expanded already (just WORKING_DIRECTORY IIRC). ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-07-21 11:19 Ben Boeckel New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers