Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/cmake/platform/platform_unix.cmake')
-rw-r--r--build_files/cmake/platform/platform_unix.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index c034e7028af..3f73916daf3 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -195,8 +195,14 @@ endif()
if(WITH_OPENCOLLADA)
find_package_wrapper(OpenCOLLADA)
if(OPENCOLLADA_FOUND)
- find_package_wrapper(XML2)
- find_package_wrapper(PCRE)
+ if(WITH_STATIC_LIBS)
+ # PCRE and XML2 are bundled with OpenCollada.
+ set(PCRE_LIBRARIES pcre)
+ set(XML2_LIBRARIES xml2)
+ else()
+ find_package_wrapper(XML2)
+ find_package_wrapper(PCRE)
+ endif()
else()
set(WITH_OPENCOLLADA OFF)
endif()