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:
authorRay Molenkamp <github@lazydodo.com>2018-08-26 04:38:47 +0300
committerRay Molenkamp <github@lazydodo.com>2018-08-26 04:38:47 +0300
commit0339964ea8c63f3fc0fcfeae7184ea3ce59976f7 (patch)
tree1562be2ca74f88a8484b71c12e5e6aca30b3591b /build_files/build_environment/cmake/pthreads.cmake
parent3311e29b729432ef017d170e45e13c5455e2c453 (diff)
build_environment: cleanup harvest on windows
Diffstat (limited to 'build_files/build_environment/cmake/pthreads.cmake')
-rw-r--r--build_files/build_environment/cmake/pthreads.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_files/build_environment/cmake/pthreads.cmake b/build_files/build_environment/cmake/pthreads.cmake
index c93f0866aa9..39fc93e8d39 100644
--- a/build_files/build_environment/cmake/pthreads.cmake
+++ b/build_files/build_environment/cmake/pthreads.cmake
@@ -43,4 +43,13 @@ if(WIN32)
${CMAKE_COMMAND} -E copy ${BUILD_DIR}/pthreads/src/external_pthreads/semaphore.h ${LIBDIR}/pthreads/inc/semaphore.h
INSTALL_DIR ${LIBDIR}/pthreads
)
+
+ if(BUILD_MODE STREQUAL Release)
+ ExternalProject_Add_Step(external_pthreads after_install
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/inc/ ${HARVEST_TARGET}/pthreads/include/
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/lib/ ${HARVEST_TARGET}/pthreads/lib
+ DEPENDEES install
+ )
+ endif()
+
endif()