only install script to the folder of the current build configuration.

Reviewed by Chris Beall
release/4.3a0
Duy-Nguyen Ta 2017-05-16 16:56:04 -04:00
parent 8c60868e63
commit b53a901922
1 changed files with 1 additions and 1 deletions

View File

@ -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}")