[Bf-blender-cvs] [deb5c1dae92] gsoc-2018-many-light-sampling: CMake: only include licences for enabled libs
Campbell Barton
noreply at git.blender.org
Fri Jun 1 16:17:08 CEST 2018
Commit: deb5c1dae92fb09e77139c261faafd524f6f9133
Author: Campbell Barton
Date: Mon May 21 18:41:59 2018 +0200
Branches: gsoc-2018-many-light-sampling
https://developer.blender.org/rBdeb5c1dae92fb09e77139c261faafd524f6f9133
CMake: only include licences for enabled libs
===================================================================
M source/creator/CMakeLists.txt
===================================================================
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
More information about the Bf-blender-cvs
mailing list