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

-- 

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