From 544b06510a526bf2f9cf80863289b13a19e24824 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Wed, 24 May 2017 23:46:36 +0800 Subject: [PATCH] remove whitespaces --- cmake/GtsamCythonWrap.cmake | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index 1cf03e3e0..96ba18692 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -11,16 +11,16 @@ if(NOT GTSAM_CYTHON_INSTALL_PATH) set(GTSAM_CYTHON_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/cython") endif() -# User-friendly Cython wrapping and installing function. -# Builds a Cython module from the provided interface_header. +# User-friendly Cython wrapping and installing function. +# Builds a Cython module from the provided interface_header. # For example, for the interface header gtsam.h, # this will build the wrap module 'gtsam'. # # Arguments: # # interface_header: The relative path to the wrapper interface definition file. -# extra_imports: extra header to import in the Cython pxd file. -# For example, to use Cython gtsam.pxd in your own module, +# extra_imports: extra header to import in the Cython pxd file. +# For example, to use Cython gtsam.pxd in your own module, # use "from gtsam cimport *" # setup_py_in_path: Path to the setup.py.in config file, which will be converted # to setup.py file by cmake and used to compile the Cython module @@ -46,7 +46,7 @@ function(wrap_library_cython interface_header generated_files_path extra_imports get_filename_component(module_name "${interface_header}" NAME_WE) set(generated_cpp_file "${generated_files_path}/${module_name}.cpp") - + message(STATUS "Building wrap module ${module_name}") # Get build type postfix - gtsam_library_postfix is used in setup.py.in @@ -97,8 +97,8 @@ function(install_cython_wrapped_library interface_header generated_files_path in # Split up filename to strip trailing '/' in GTSAM_CYTHON_INSTALL_PATH if there is one get_filename_component(location "${install_path}" PATH) get_filename_component(name "${install_path}" NAME) - install(DIRECTORY "${generated_files_path}/" DESTINATION "${location}/${name}${build_type_tag}" - CONFIGURATIONS "${build_type}" + install(DIRECTORY "${generated_files_path}/" DESTINATION "${location}/${name}${build_type_tag}" + CONFIGURATIONS "${build_type}" PATTERN "build" EXCLUDE PATTERN "CMakeFiles" EXCLUDE PATTERN "Makefile" EXCLUDE @@ -107,7 +107,7 @@ function(install_cython_wrapped_library interface_header generated_files_path in PATTERN "*.py" EXCLUDE) endforeach() else() - install(DIRECTORY "${generated_files_path}/" DESTINATION ${install_path} + install(DIRECTORY "${generated_files_path}/" DESTINATION ${install_path} PATTERN "build" EXCLUDE PATTERN "CMakeFiles" EXCLUDE PATTERN "Makefile" EXCLUDE @@ -158,7 +158,7 @@ endfunction() # should be installed to all build type toolboxes # # Arguments: -# source_files: The source files to be installed. +# source_files: The source files to be installed. # dest_directory: The destination directory to install to. function(install_cython_files source_files dest_directory)