Skip to content

Commit

Permalink
Use a variable to control the license output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Apr 1, 2024
1 parent 40ff1b4 commit 055c7eb
Show file tree
Hide file tree
Showing 54 changed files with 65 additions and 113 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ set(CMAKE_NOBUNDLE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${BEXT_ROOT}/noinstal
file(MAKE_DIRECTORY "${CMAKE_BUNDLE_INSTALL_PREFIX}")
file(MAKE_DIRECTORY "${CMAKE_NOBUNDLE_INSTALL_PREFIX}")

# We want to install the license files where BRL-CAD expects them
# to be
set(DOC_LICENSE_DIR ${CMAKE_BUNDLE_INSTALL_PREFIX}/share/doc/legal/other)
file(MAKE_DIRECTORY ${DOC_LICENSE_DIR})

#---------------------------------------------------------------------
# By default, changes in ExternalProject_Add directories won't trigger
# rebuilding of those targets. Setting this to 1 changes that, but at the
Expand Down
3 changes: 1 addition & 2 deletions appleseed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ if (ENABLE_APPLESEED)
TargetInstallDeps(APPLESEED APPLESEED_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/appleseed/LICENSE.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/appleseed.txt
${DOC_LICENSE_DIR}/appleseed.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions assetimport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ if (ENABLE_ASSETIMPORT)
TargetInstallDeps(ASSETIMPORT ASSETIMPORT_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/assimp/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/assetimport.txt
${DOC_LICENSE_DIR}/assetimport.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ if (ENABLE_BOOST)
TargetInstallDeps(BOOST BOOST_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/boost/LICENSE_1_0.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/boost.txt
${DOC_LICENSE_DIR}/boost.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions deflate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ if (ENABLE_DEFLATE)
TargetInstallDeps(DEFLATE DEFLATE_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libdeflate/COPYING
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/deflate.txt
${DOC_LICENSE_DIR}/deflate.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions embree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ if (ENABLE_EMBREE)
TargetInstallDeps(EMBREE EMBREE_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/embree/LICENSE.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/embree.txt
${DOC_LICENSE_DIR}/embree.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions expat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ if (ENABLE_EXPAT)
TargetInstallDeps(EXPAT EXPAT_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libexpat/COPYING
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/expat.txt
${DOC_LICENSE_DIR}/expat.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions fmt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ if (ENABLE_FMT)
TargetInstallDeps(FMT FMT_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/fmt/LICENSE.rst
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/fmt.txt
${DOC_LICENSE_DIR}/fmt.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions gdal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ if (ENABLE_GDAL)
TargetInstallDeps(GDAL GDAL_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/gdal/LICENSE.TXT
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/gdal.txt
${DOC_LICENSE_DIR}/gdal.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions geogram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ if (ENABLE_GEOGRAM)
TargetInstallDeps(GEOGRAM GEOGRAM_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/geogram/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/geogram.txt
${DOC_LICENSE_DIR}/geogram.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions icu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ if (NOT WIN32 AND NOT APPLE)
TargetInstallDeps(FMT FMT_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/icu/icu4c/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/icu.txt
${DOC_LICENSE_DIR}/icu.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions ispc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ if (ENABLE_ISPC)
TargetInstallDeps(ISPC ISPC_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/ispc/LICENSE.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/ispc.txt
${DOC_LICENSE_DIR}/ispc.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions itcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ if (ENABLE_ITCL)
TargetInstallDeps(ITCL ITCL_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/itcl/license.terms
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/itcl3.txt
${DOC_LICENSE_DIR}/itcl3.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions itk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ if (ENABLE_ITK)
TargetInstallDeps(ITK ITK_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/itk/license.terms
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/itk3.txt
${DOC_LICENSE_DIR}/itk3.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions iwidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ if (ENABLE_IWIDGETS)
TargetInstallDeps(IWIDGETS IWIDGETS_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/iwidgets/license.terms
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/iwidgets.txt
${DOC_LICENSE_DIR}/iwidgets.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions jpeg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ if (ENABLE_JPEG)
TargetInstallDeps(JPEG JPEG_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/libjpeg-turbo/LICENSE.md
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/jpeg.txt
${DOC_LICENSE_DIR}/jpeg.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions linenoise/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ if (ENABLE_LINENOISE)
TargetInstallDeps(LINENOISE LINENOISE_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/license.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/linenoise.txt
${DOC_LICENSE_DIR}/linenoise.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ if (ENABLE_LLVM)
TargetInstallDeps(LLVM LLVM_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/llvm-project/llvm/LICENSE.TXT
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/LLVM.txt
${DOC_LICENSE_DIR}/LLVM.txt
COPYONLY
)

Expand Down
7 changes: 3 additions & 4 deletions lmdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ if (ENABLE_LMDB)
# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/lmdb/libraries/liblmdb/COPYRIGHT LMDB_COPYRIGHT)
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/lmdb/libraries/liblmdb/LICENSE LMDB_LICENSE)
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
file(WRITE ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/lmdb.txt "${LMDB_COPYRIGHT}")
file(APPEND ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/lmdb.txt "\n")
file(APPEND ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/lmdb.txt "${LMDB_LICENSE}")
file(WRITE ${DOC_LICENSE_DIR}/lmdb.txt "${LMDB_COPYRIGHT}")
file(APPEND ${DOC_LICENSE_DIR}/lmdb.txt "\n")
file(APPEND ${DOC_LICENSE_DIR}/lmdb.txt "${LMDB_LICENSE}")

endif (ENABLE_LMDB)

Expand Down
3 changes: 1 addition & 2 deletions lz4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ if (ENABLE_LZ4)
TargetInstallDeps(LZ4 LZ4_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/lz4/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/lz4.txt
${DOC_LICENSE_DIR}/lz4.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions manifold/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ if (ENABLE_MANIFOLD)
TargetInstallDeps(MANIFOLD MANIFOLD_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/manifold/LICENSES.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/manifold.txt
${DOC_LICENSE_DIR}/manifold.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions minizip-ng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ if (ENABLE_MINIZIP_NG)
TargetInstallDeps(MINIZIP_NG MINIZIP_NG_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/minizip-ng/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/minizip-ng.txt
${DOC_LICENSE_DIR}/minizip-ng.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions ncurses/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ if (NOT WIN32)
TargetInstallDeps(NCURSES NCURSES_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/ncurses/COPYING
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/ncurses.txt
${DOC_LICENSE_DIR}/ncurses.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions netpbm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ if (ENABLE_NETPBM)
TargetInstallDeps(NETPBM NETPBM_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/netpbm.txt
${DOC_LICENSE_DIR}/netpbm.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions onetbb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ if (ENABLE_ONETBB)
TargetInstallDeps(ONETBB ONETBB_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/oneTBB/LICENSE.txt
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/oneTBB.txt
${DOC_LICENSE_DIR}/oneTBB.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions opencolorio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ if (ENABLE_OPENCOLORIO)
TargetInstallDeps(OPENCOLORIO OPENCOLORIO_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/OpenColorIO/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/opencolorio.txt
${DOC_LICENSE_DIR}/opencolorio.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions opencv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ if (ENABLE_OPENCV)
TargetInstallDeps(OPENCV OPENCV_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/opencv/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/opencv.txt
${DOC_LICENSE_DIR}/opencv.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions openexr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ if (ENABLE_OPENEXR)
TargetInstallDeps(OPENEXR OPENEXR_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/openexr/LICENSE.md
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/openexr.txt
${DOC_LICENSE_DIR}/openexr.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions openimageio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ if (ENABLE_OPENIMAGEIO)
TargetInstallDeps(OPENIMAGEIO OPENIMAGEIO_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/oiio/LICENSE.md
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/openimageio.txt
${DOC_LICENSE_DIR}/openimageio.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions openmesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ if (ENABLE_OPENMESH)
TargetInstallDeps(OPENMESH OPENMESH_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/OpenMesh/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/openmesh.txt
${DOC_LICENSE_DIR}/openmesh.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions opennurbs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ if (ENABLE_OPENNURBS)
TargetInstallDeps(OPENNURBS OPENNURBS_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/opennurbs/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/openNURBS.txt
${DOC_LICENSE_DIR}/openNURBS.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions osl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ if (ENABLE_OSL)
TargetInstallDeps(OSL OSL_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/OpenShadingLanguage/LICENSE.md
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/openshadinglanguage.txt
${DOC_LICENSE_DIR}/openshadinglanguage.txt
COPYONLY
)

Expand Down
3 changes: 1 addition & 2 deletions osmesa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ if (ENABLE_OSMESA)
TargetInstallDeps(OSMESA OSMESA_DEPENDS)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
file(MAKE_DIRECTORY ${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/osmesa/LICENSE
${CMAKE_BUNDLE_INSTALL_PREFIX}/doc/legal/other/osmesa.txt
${DOC_LICENSE_DIR}/osmesa.txt
COPYONLY
)

Expand Down
Loading

0 comments on commit 055c7eb

Please sign in to comment.