build_environment: opencolorio buildfixes for windows.
authorRay Molenkamp <github@lazydodo.com>
Sun, 19 Aug 2018 17:38:48 +0000 (11:38 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sun, 19 Aug 2018 17:44:46 +0000 (11:44 -0600)
copy the debug libs to the right place.

build_files/build_environment/cmake/opencolorio.cmake

index a99b1f118cb2f155ed3f0197ca6945fb7639b128..889c25225a947c875d6f83b66408fae5f8229b21 100644 (file)
@@ -100,6 +100,14 @@ if(WIN32)
                        DEPENDEES install
                )
        endif()
+       if(BUILD_MODE STREQUAL Debug)
+               ExternalProject_Add_Step(external_opencolorio after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencolorio/lib/static/Opencolorio.lib ${HARVEST_TARGET}/opencolorio/lib/OpencolorIO_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/yamlcpp/lib/libyaml-cppmtd.lib ${HARVEST_TARGET}/opencolorio/lib/libyaml-cpp_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/tinyxml/lib/tinyxml.lib ${HARVEST_TARGET}/opencolorio/lib/tinyxml_d.lib
+                       DEPENDEES install
+               )
+       endif()
        
 endif()