From c4ba0d15087b5052bb557f94f93ac5f76c75da93 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 2 Apr 2020 22:05:03 +0200 Subject: [PATCH] Fix Linux link error with pcre after recent changes, must use absolute path --- build_files/cmake/platform/platform_unix.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index d3444f41e37..0bf790b34e6 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -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()