mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 11:59:15 -04:00
ChangeLog: https://www.openshot.org/blog/2023/04/06/new_openshot_release_310/ PR: 270762 Reported by: tatsuki_makino@hotmail.com
21 lines
787 B
Text
21 lines
787 B
Text
--- src/CMakeLists.txt.orig 2023-03-27 18:48:43 UTC
|
|
+++ src/CMakeLists.txt
|
|
@@ -516,6 +516,18 @@ See https://github.com/opencv/opencv/issues/19260]])
|
|
endif() # ENABLE_OPENCV
|
|
add_feature_info("OpenCV algorithms" ENABLE_OPENCV "Use OpenCV algorithms")
|
|
|
|
+# EXECINFO
|
|
+include(CheckFunctionExists)
|
|
+check_function_exists("backtrace" FUNCTION_BACKTRACE_FOUND)
|
|
+if(NOT FUNCTION_BACKTRACE_FOUND)
|
|
+ find_library(EXECINFO_LIBRARY NAMES execinfo)
|
|
+ if(NOT EXECINFO_LIBRARY)
|
|
+ message(FATAL_ERROR "${EXECINFO_LIBRARY}")
|
|
+ endif(NOT EXECINFO_LIBRARY)
|
|
+ target_link_libraries(openshot PRIVATE ${EXECINFO_LIBRARY})
|
|
+endif(NOT FUNCTION_BACKTRACE_FOUND)
|
|
+unset(FUNCTION_BACKTRACE_FOUND)
|
|
+
|
|
############### LINK LIBRARY #################
|
|
# Link remaining dependency libraries
|
|
if(DEFINED PROFILER)
|