Skip to content
Snippets Groups Projects
Commit 5ddcaa9b authored by Valerio Mariani's avatar Valerio Mariani
Browse files

TGZ package support for UBUNTU_LAYOUT

A little less hackish solution. Thanks to Andi for the suggestion
parent a15955d3
No related branches found
No related tags found
No related merge requests found
...@@ -981,9 +981,11 @@ function(copy_python include_path version new_binary_path) ...@@ -981,9 +981,11 @@ function(copy_python include_path version new_binary_path)
get_filename_component(real_python_include_path ${include_path} REALPATH) get_filename_component(real_python_include_path ${include_path} REALPATH)
get_filename_component(python_root_dir ${real_python_include_path}/../.. REALPATH) get_filename_component(python_root_dir ${real_python_include_path}/../.. REALPATH)
if (_UBUNTU_LAYOUT) if (_UBUNTU_LAYOUT)
execute_process(COMMAND cp -rL ${python_root_dir}/${LIB_DIR}/python${version} ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/) file (GLOB_RECURSE python_lib_files RELATIVE ${python_root_dir}/${LIB_DIR}/python${version}/ FOLLOW_SYMLINKS ${python_root_dir}/${LIB_DIR}/python${version}/*)
message("Output: ${out}") foreach(python_lib_file ${python_lib_files})
message("Error: ${error}") get_filename_component(real_python_lib_file ${python_root_dir}/${LIB_DIR}/python${version}/${python_lib_file} REALPATH)
execute_process(COMMAND cmake -E copy ${real_python_lib_file} ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/python${version}/${python_lib_file})
endforeach()
else() else()
file(COPY ${python_root_dir}/${LIB_DIR}/python${version}/ DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/python${version} PATTERN "*.pyc" EXCLUDE) file(COPY ${python_root_dir}/${LIB_DIR}/python${version}/ DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/python${version} PATTERN "*.pyc" EXCLUDE)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment