Enable lcms support on Windows.
[blender.git] / build_files / cmake / macros.cmake
index 0957ace301c14007a9d5963a91b8972a14c8e5f5..08a571cceafc2ce519c4d1a7b2d40fb2752b7ee6 100644 (file)
@@ -172,11 +172,17 @@ MACRO(SETUP_LIBLINKS
                                TARGET_LINK_LIBRARIES(${target} optimized ${EXPAT_LIB})
                        ENDIF(EXPAT_LIB)
                ELSE(WIN32)
-               TARGET_LINK_LIBRARIES(${target} ${OPENCOLLADA_LIB})
+                       TARGET_LINK_LIBRARIES(${target} ${OPENCOLLADA_LIB})
                        TARGET_LINK_LIBRARIES(${target} ${PCRE_LIB})
                        TARGET_LINK_LIBRARIES(${target} ${EXPAT_LIB})
                ENDIF(WIN32)
        ENDIF(WITH_OPENCOLLADA)
+       IF(WITH_LCMS)
+               IF(WIN32)
+                       TARGET_LINK_LIBRARIES(${target} debug ${LCMS_LIB}_d)
+                       TARGET_LINK_LIBRARIES(${target} optimized ${LCMS_LIB})
+               ENDIF(WIN32)
+       ENDIF(WITH_LCMS)
        IF(WIN32)
                TARGET_LINK_LIBRARIES(${target} ${PTHREADS_LIB})
        ENDIF(WIN32)