Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:telephony-to-merge
linphoneqt
linphoneqt-fix-Archlinux-compilation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File linphoneqt-fix-Archlinux-compilation.patch of Package linphoneqt
diff -U 3 -H -b -B -d -r -N -- a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,37 @@ include(GNUInstallDirs) include(CheckCXXCompilerFlag) +########################################################## +## +## Archlinux fix for CMake +## not being able to find all libraries +## +# Add functionality to print variables (useful for CMake debugging) +include(CMakePrintHelpers) +# +# Determine where libraries usually end up... +# /usr/lib64 on Fedora ... /usr/lib/x86_64-linux-gnu/ on Debian +# It is needed when libraries are imported. +# A typical linux library would be libc.so +find_library(MY_LIBC_LIBRARY libc.so) +cmake_print_variables(MY_LIBC_LIBRARY) +# Get parent directory of libc.so +cmake_path(GET MY_LIBC_LIBRARY PARENT_PATH MY_LINUX_USUAL_LIBRARY_DIR) +cmake_print_variables(MY_LINUX_USUAL_LIBRARY_DIR) +# Fix import libraries that CMake cannot find on its own +add_library(linphone SHARED IMPORTED) +set_property(TARGET linphone PROPERTY + IMPORTED_LOCATION "${MY_LINUX_USUAL_LIBRARY_DIR}/liblinphone.so") +# IMPORTED_LOCATION "/usr/lib/liblinphone.so") +add_library(linphone++ SHARED IMPORTED) +set_property(TARGET linphone++ PROPERTY + IMPORTED_LOCATION "${MY_LINUX_USUAL_LIBRARY_DIR}/liblinphone++.so") +# IMPORTED_LOCATION "/usr/lib/liblinphone++.so") +## +## End modification +## +########################################################### + set(CMAKE_CXX_STANDARD 11) # Prepare gobal CMAKE configuration specific to the current project
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor