Ok I think I got something nicely integrated now.
 
Patch in attachment.

This enable generator expressions for the target properties OUTPUT_NAME and 
RUNTIME_OUTPUT_DIRECTORY, as well as the DESTINATION property of the install 
command.

Cheers!

-Robert Goulet

-----Original Message-----
From: Brad King [mailto:[email protected]] 
Sent: Wednesday, June 10, 2015 8:47 AM
To: Robert Goulet
Cc: [email protected]
Subject: Re: [cmake-developers] Generator expressions for output directory/name 
(and install?)

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

Attachment: more-generator-expressions.patch
Description: more-generator-expressions.patch

-- 

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

Reply via email to