Fix Linux link error with pcre after recent changes, must use absolute path

This commit is contained in:
Brecht Van Lommel 2020-04-02 22:05:03 +02:00
parent 75f6e6b39e
commit c4ba0d1508
1 changed files with 3 additions and 2 deletions

View File

@ -196,8 +196,9 @@ if(WITH_OPENCOLLADA)
find_package_wrapper(OpenCOLLADA)
if(OPENCOLLADA_FOUND)
if(WITH_STATIC_LIBS)
# PCRE is bundled with OpenCollada.
set(PCRE_LIBRARIES pcre)
# PCRE is bundled with OpenCollada without headers, so can't use
# find_package reliably to detect it.
set(PCRE_LIBRARIES ${LIBDIR}/opencollada/lib/libpcre.a)
else()
find_package_wrapper(PCRE)
endif()