On 8/31/2015 1:11 AM, Sergiu Dotenco wrote:
> I would like to pass different library directories to fixup_bundle,
> depending what configuration is currently active. Right now, I define a
> cache variable consisting of DLL directories:
> 
> set (RUNTIME_LIBRARY_DIRS "C:/Foo/Release/bin;..." CACHE STRING "")
> 
> This is problematic, since for a different build configuration (for
> instance RelWithDebInfo or even Debug) this set of directories would
> probably be different as well. For Makefile generators I can use
> CMAKE_BUILD_TYPE to decide which variables to select. However, this does
> not work in an environment that supports multiconfiguration, such as
> Visual Studio or Xcode, because the selection must be done at build time.
> 
> Any ideas how can one achieve this?
> 

Got it. One can use CMAKE_INSTALL_CONFIG_NAME in install (CODE "...").
-- 

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

Reply via email to