fix for error linking opencollada on linux.
[blender.git] / build_files / cmake / macros.cmake
index d09215d040df8a528c1e6fd11fa78a4df888487f..aec7a9fd96c960dc4dfa0f1ee86406053ca1bcce 100644 (file)
@@ -295,10 +295,10 @@ macro(setup_liblinks
                        target_link_libraries_optimized(${target} "${OPENCOLLADA_LIBRARIES}")
                        unset(OPENCOLLADA_LIBRARIES_DEBUG)
 
-                       file_list_suffix(PCRE_LIB_DEBUG "${PCRE_LIB}" "_d")
-                       target_link_libraries_debug(${target} "${PCRE_LIB_DEBUG}")
-                       target_link_libraries_optimized(${target} "${PCRE_LIB}")
-                       unset(PCRE_LIB_DEBUG)
+                       file_list_suffix(PCRE_LIBRARIES_DEBUG "${PCRE_LIBRARIES}" "_d")
+                       target_link_libraries_debug(${target} "${PCRE_LIBRARIES_DEBUG}")
+                       target_link_libraries_optimized(${target} "${PCRE_LIBRARIES}")
+                       unset(PCRE_LIBRARIES_DEBUG)
 
                        if(EXPAT_LIB)
                                file_list_suffix(EXPAT_LIB_DEBUG "${EXPAT_LIB}" "_d")
@@ -309,7 +309,8 @@ macro(setup_liblinks
                else()
                        target_link_libraries(${target}
                                        ${OPENCOLLADA_LIBRARIES}
-                                       ${PCRE_LIB}
+                                       ${PCRE_LIBRARIES}
+                                       ${XML2_LIBRARIES}
                                        ${EXPAT_LIB})
                endif()
        endif()