diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-08-30 20:40:46 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-08-30 20:40:46 +0300 |
commit | f430685d2d286f2f43b68ea2debec4f124de9072 (patch) | |
tree | ccdd93587c9a6cd60cf5d301e56576392c42e090 | |
parent | d8bc28ca20c75cfced1d6c64857b1c2ff0282cc6 (diff) |
Windows: Fix compatibility with older cmake
Older cmake did not find the BlendThumb sub project.
-rw-r--r-- | source/blender/blendthumb/CMakeLists.txt | 6 | ||||
-rw-r--r-- | source/creator/CMakeLists.txt | 10 |
2 files changed, 6 insertions, 10 deletions
diff --git a/source/blender/blendthumb/CMakeLists.txt b/source/blender/blendthumb/CMakeLists.txt index 3f9e0b1bff5..669234550af 100644 --- a/source/blender/blendthumb/CMakeLists.txt +++ b/source/blender/blendthumb/CMakeLists.txt @@ -30,3 +30,9 @@ set(SRC add_library(BlendThumb SHARED ${SRC}) target_link_libraries(BlendThumb ${ZLIB_LIBRARIES}) + +install( + FILES $<TARGET_FILE:BlendThumb> + COMPONENT Blender + DESTINATION "." +) diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 893d3262590..1cd0a6661f8 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -1026,16 +1026,6 @@ if (WIN32) endif() # ----------------------------------------------------------------------------- -# Thumbnailer -if(WIN32) - install( - TARGETS BlendThumb - COMPONENT Blender - DESTINATION "." - ) -endif() - -# ----------------------------------------------------------------------------- # Setup launcher if(WIN32 AND NOT WITH_PYTHON_MODULE) |