[cmake-developers] Generator expressions for output directory/name (and install?)
Brad King
brad.king at kitware.com
Wed Jun 10 08:46:45 EDT 2015
On 06/09/2015 05:00 PM, Robert Goulet wrote:
> install scripts doesn't seem to be per configuration
While there is not a separate script for each configuration the
scripts themselves do support switching on the configuration
selected for installation. For single-configuration generators
they only need to have the one configuration specified by the
CMAKE_BUILD_TYPE. For multi-configuration generators they do
get per-config code selected by conditional blocks. Try using
one of the Visual Studio or Xcode generators to see how the
install scripts look. Also try using a genex in the list of
files given to the install(FILES) command.
See cmScriptGenerator.cxx for the logic that dispatches based
on whether the script content is to be single or multi config.
-Brad
More information about the cmake-developers
mailing list