diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-21 19:41:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-21 19:41:59 +0300 |
commit | 9f66d0028774315b60c29a64a54bf0e3c1fe16ec (patch) | |
tree | 141f42625e2275e8460cf4e0f4e3ddd6967f9558 /source/creator | |
parent | 605e1841676ce44de827d924a9e7f3e8d5f8b3dc (diff) |
CMake: only include licences for enabled libs
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/CMakeLists.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index a71c1bb1984..47016cbbb3b 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -265,15 +265,30 @@ endif() set(BLENDER_TEXT_FILES ${CMAKE_SOURCE_DIR}/release/text/GPL-license.txt ${CMAKE_SOURCE_DIR}/release/text/GPL3-license.txt - ${CMAKE_SOURCE_DIR}/release/text/Python-license.txt ${CMAKE_SOURCE_DIR}/release/text/copyright.txt - ${CMAKE_SOURCE_DIR}/release/text/jemalloc-license.txt - ${CMAKE_SOURCE_DIR}/release/text/ocio-license.txt # generate this file # ${CMAKE_SOURCE_DIR}/release/text/readme.html ${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-bfont.ttf.txt ) +if(WITH_PYTHON) + list(APPEND BLENDER_TEXT_FILES + ${CMAKE_SOURCE_DIR}/release/text/Python-license.txt + ) +endif() + +if(WITH_OPENCOLORIO) + list(APPEND BLENDER_TEXT_FILES + ${CMAKE_SOURCE_DIR}/release/text/ocio-license.txt + ) +endif() + +if(WITH_MEM_JEMALLOC) + list(APPEND BLENDER_TEXT_FILES + ${CMAKE_SOURCE_DIR}/release/text/jemalloc-license.txt + ) +endif() + if(WITH_INTERNATIONAL) list(APPEND BLENDER_TEXT_FILES ${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-droidsans.ttf.txt |