From b53a9019223ec40ccbbb370d02e0128407c18b7f Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Tue, 16 May 2017 16:56:04 -0400 Subject: [PATCH] only install script to the folder of the current build configuration. Reviewed by Chris Beall --- cmake/GtsamCythonWrap.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index a1ebd3ef2..f388d55e5 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -172,7 +172,7 @@ function(install_cython_files source_files dest_directory) # Split up filename to strip trailing '/' in GTSAM_CYTHON_INSTALL_PATH if there is one get_filename_component(location "${dest_directory}" PATH) get_filename_component(name "${dest_directory}" NAME) - install(FILES "${source_files}" DESTINATION "${location}/${name}${build_type_tag}") + install(FILES "${source_files}" DESTINATION "${location}/${name}${build_type_tag}" CONFIGURATIONS "${build_type}") endforeach() else() install(FILES "${source_files}" DESTINATION "${dest_directory}")