From db483b3e275ed2dec51e00ffd7b4dfdf2a84da7b Mon Sep 17 00:00:00 2001 From: Diy Upstream Date: Wed, 26 Aug 2020 14:17:07 -0400 Subject: [PATCH] diy 2020-08-26 (c9efaac9) Code extracted from: https://gitlab.kitware.com/third-party/diy2.git at commit c9efaac980f80be866585a3412cad6bc8a89409b (for/vtk-m-20200826-master). --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 859e5f157..420b1aa6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,9 @@ endif() if (NOT DEFINED diy_install_include_dir) set(diy_install_include_dir "include") endif() +if (NOT DEFINED diy_install_bin_dir) + set(diy_install_bin_dir "bin") +endif() if (NOT DEFINED diy_install_lib_dir) set(diy_install_lib_dir "lib") endif() @@ -249,7 +252,10 @@ if (NOT DEFINED diy_install_only_libraries) # defined by parent project if build endif() endif() -install(TARGETS ${diy_targets} EXPORT ${diy_export_name} DESTINATION ${diy_install_lib_dir}) +install(TARGETS ${diy_targets} EXPORT ${diy_export_name} + ARCHIVE DESTINATION ${diy_install_lib_dir} + LIBRARY DESTINATION ${diy_install_lib_dir} + RUNTIME DESTINATION ${diy_install_bin_dir}) if (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) # Only generate these files when diy is the main project export(EXPORT ${diy_export_name} NAMESPACE DIY:: FILE "${PROJECT_BINARY_DIR}/diy-targets.cmake")