Skip to content
Snippets Groups Projects
Commit ae91ab05 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

Merge branch...

Merge branch '1593-otb-6-6-rc1-fails-to-build-on-debian-unstable-error-while-loading-shared-libraries-libotbapplicationengine-6-6-so-1-cannot-open-shared-object-file-no-such-file-or-directory' into 'release-6.6'

Resolve "OTB 6.6-rc1 fails to build on Debian unstable (error while loading shared libraries: libOTBApplicationEngine-6.6.so.1: cannot open shared object file: No such file or directory)"

See merge request !105
parents 6387990a 484703a3
No related branches found
No related tags found
1 merge request!105Resolve "OTB 6.6-rc1 fails to build on Debian unstable (error while loading shared libraries: libOTBApplicationEngine-6.6.so.1: cannot open shared object file: No such file or directory)"
......@@ -32,12 +32,19 @@ list(REMOVE_ITEM app_names "TestApplication")
list(REMOVE_ITEM app_names "ApplicationExample")
list(REMOVE_DUPLICATES app_names)
set(dfiles)
set(generate_descriptor_cmd "$<TARGET_FILE:otbQgisDescriptor>")
#debian does not use RPATH and build is failing
#see gitlab #1593
#if( "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
if(CMAKE_SKIP_RPATH AND "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
set(generate_descriptor_cmd "env;LD_LIBRARY_PATH=${OTB_BINARY_DIR}/lib;$<TARGET_FILE:otbQgisDescriptor>")
endif()
foreach(app_name ${app_names})
add_dependencies(otbQgisDescriptor otbapp_${app_name})
set(dfile "${OTB_BINARY_DIR}/${OTB_INSTALL_DESCR_DIR}/${app_name}.txt")
add_custom_command(OUTPUT "${dfile}"
COMMAND "$<TARGET_FILE:otbQgisDescriptor>"
"${app_name}" "${OTB_BINARY_DIR}/${OTB_INSTALL_APP_DIR}" "${OTB_BINARY_DIR}/${OTB_INSTALL_DESCR_DIR}/"
COMMAND ${generate_descriptor_cmd}
"${app_name}" "${OTB_BINARY_DIR}/${OTB_INSTALL_APP_DIR}" "${OTB_BINARY_DIR}/${OTB_INSTALL_DESCR_DIR}/"
WORKING_DIRECTORY ${OTB_BINARY_DIR}
COMMENT "./bin/otbQgisDescriptor ${app_name} ./${OTB_INSTALL_APP_DIR} ./${OTB_INSTALL_DESCR_DIR}/"
VERBATIM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment