Skip to content

Commit

Permalink
don't link libqtpcre2 if it doesn't exist (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklontz authored Aug 15, 2023
1 parent 266029e commit fbf1a42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ find_package(Qt5 COMPONENTS ${QT_DEPENDENCIES} REQUIRED)

set(BR_THIRDPARTY_LIBS ${BR_THIRDPARTY_LIBS} ${Qt5Core_QTMAIN_LIBRARIES})
if(IOS)
list(APPEND BR_THIRDPARTY_LIBS "${_qt5Core_install_prefix}/lib/libqtpcre2.a")
set(QT_PCRE2_LIB "${_qt5Core_install_prefix}/lib/libqtpcre2.a")
if(EXISTS ${QT_PCRE2_LIB})
list(APPEND BR_THIRDPARTY_LIBS "${QT_PCRE2_LIB}")
endif()
endif()

# Find OpenCV
Expand Down

0 comments on commit fbf1a42

Please sign in to comment.