File headers: use SPDX license for CMake files

This commit is contained in:
Campbell Barton 2022-02-11 14:23:56 +11:00
parent 9802d50c6b
commit 1df8a5f8fb
71 changed files with 188 additions and 401 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
function(download_source dep) function(download_source dep)
set(TARGET_FILE ${${dep}_FILE}) set(TARGET_FILE ${${dep}_FILE})
set(TARGET_HASH_TYPE ${${dep}_HASH_TYPE}) set(TARGET_HASH_TYPE ${${dep}_HASH_TYPE})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find BLOSC library # - Find BLOSC library
# Find the native BLOSC includes and library # Find the native BLOSC includes and library
# This module defines # This module defines
@ -11,17 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# BLOSC_LIBRARY, where to find the BLOSC library. # BLOSC_LIBRARY, where to find the BLOSC library.
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# If BLOSC_ROOT_DIR was defined in the environment, use it. # If BLOSC_ROOT_DIR was defined in the environment, use it.
IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "") IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "")
SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR}) SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find CPPUNIT library # - Find CPPUNIT library
# Find the native CPPUNIT includes and library # Find the native CPPUNIT includes and library
# This module defines # This module defines
@ -11,17 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# CPPUNIT_LIBRARY, where to find the CPPUNIT library. # CPPUNIT_LIBRARY, where to find the CPPUNIT library.
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# If CPPUNIT_ROOT_DIR was defined in the environment, use it. # If CPPUNIT_ROOT_DIR was defined in the environment, use it.
IF(NOT CPPUNIT_ROOT_DIR AND NOT $ENV{CPPUNIT_ROOT_DIR} STREQUAL "") IF(NOT CPPUNIT_ROOT_DIR AND NOT $ENV{CPPUNIT_ROOT_DIR} STREQUAL "")
SET(CPPUNIT_ROOT_DIR $ENV{CPPUNIT_ROOT_DIR}) SET(CPPUNIT_ROOT_DIR $ENV{CPPUNIT_ROOT_DIR})

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Module to find IlmBase # Module to find IlmBase
# #
# This module will first look into the directories defined by the variables: # This module will first look into the directories defined by the variables:

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find LOGC4PLUS library # - Find LOGC4PLUS library
# Find the native LOGC4PLUS includes and library # Find the native LOGC4PLUS includes and library
# This module defines # This module defines
@ -11,17 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# LOGC4PLUS_LIBRARY, where to find the LOGC4PLUS library. # LOGC4PLUS_LIBRARY, where to find the LOGC4PLUS library.
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# If LOGC4PLUS_ROOT_DIR was defined in the environment, use it. # If LOGC4PLUS_ROOT_DIR was defined in the environment, use it.
IF(NOT LOGC4PLUS_ROOT_DIR AND NOT $ENV{LOGC4PLUS_ROOT_DIR} STREQUAL "") IF(NOT LOGC4PLUS_ROOT_DIR AND NOT $ENV{LOGC4PLUS_ROOT_DIR} STREQUAL "")
SET(LOGC4PLUS_ROOT_DIR $ENV{LOGC4PLUS_ROOT_DIR}) SET(LOGC4PLUS_ROOT_DIR $ENV{LOGC4PLUS_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find TBB library # - Find TBB library
# Find the native TBB includes and library # Find the native TBB includes and library
# This module defines # This module defines
@ -11,17 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# TBB_LIBRARY, where to find the TBB library. # TBB_LIBRARY, where to find the TBB library.
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# If TBB_ROOT_DIR was defined in the environment, use it. # If TBB_ROOT_DIR was defined in the environment, use it.
IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "") IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "")
SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR}) SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR})

View File

@ -1,3 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2009 Kitware, Inc.
# 2009 Will Dicharry <wdicharry@stellarscience.com>
# 2005-2009 Kitware, Inc.
# select_library_configurations( basename ) # select_library_configurations( basename )
# #
# This macro takes a library base name as an argument, and will choose good # This macro takes a library base name as an argument, and will choose good
@ -14,18 +19,6 @@
# or the generator in use does not support configuration types, then # or the generator in use does not support configuration types, then
# basename_LIBRARY and basename_LIBRARIES will take only the release values. # basename_LIBRARY and basename_LIBRARIES will take only the release values.
#=============================================================================
# Copyright 2009 Kitware, Inc.
# Copyright 2009 Will Dicharry <wdicharry@stellarscience.com>
# Copyright 2005-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full # (To distribute this file outside of CMake, substitute the full
# License text for the above reference.) # License text for the above reference.)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ######## Global feature set settings ######## # ######## Global feature set settings ########
include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_release.cmake") include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_release.cmake")

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find Alembic library # - Find Alembic library
# Find the native Alembic includes and libraries # Find the native Alembic includes and libraries
# This module defines # This module defines
@ -9,13 +12,6 @@
# ALEMBIC_FOUND, If false, do not try to use Alembic. # ALEMBIC_FOUND, If false, do not try to use Alembic.
# #
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If ALEMBIC_ROOT_DIR was defined in the environment, use it. # If ALEMBIC_ROOT_DIR was defined in the environment, use it.
IF(NOT ALEMBIC_ROOT_DIR AND NOT $ENV{ALEMBIC_ROOT_DIR} STREQUAL "") IF(NOT ALEMBIC_ROOT_DIR AND NOT $ENV{ALEMBIC_ROOT_DIR} STREQUAL "")
SET(ALEMBIC_ROOT_DIR $ENV{ALEMBIC_ROOT_DIR}) SET(ALEMBIC_ROOT_DIR $ENV{ALEMBIC_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation.
# - Try to find audaspace # - Try to find audaspace
# Once done, this will define # Once done, this will define
# #
@ -11,13 +14,6 @@
# AUDASPACE_PY_INCLUDE_DIRS - the audaspace's python binding include directories # AUDASPACE_PY_INCLUDE_DIRS - the audaspace's python binding include directories
# AUDASPACE_PY_LIBRARIES - link these to use audaspace's python binding # AUDASPACE_PY_LIBRARIES - link these to use audaspace's python binding
#=============================================================================
# Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
IF(NOT AUDASPACE_ROOT_DIR AND NOT $ENV{AUDASPACE_ROOT_DIR} STREQUAL "") IF(NOT AUDASPACE_ROOT_DIR AND NOT $ENV{AUDASPACE_ROOT_DIR} STREQUAL "")
SET(AUDASPACE_ROOT_DIR $ENV{AUDASPACE_ROOT_DIR}) SET(AUDASPACE_ROOT_DIR $ENV{AUDASPACE_ROOT_DIR})
ENDIF() ENDIF()

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 Blender Foundation.
# - Find Blosc library # - Find Blosc library
# Find the native Blosc includes and library # Find the native Blosc includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# BLOSC_LIBRARY, where to find the Blosc library. # BLOSC_LIBRARY, where to find the Blosc library.
#=============================================================================
# Copyright 2018 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If BLOSC_ROOT_DIR was defined in the environment, use it. # If BLOSC_ROOT_DIR was defined in the environment, use it.
IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "") IF(NOT BLOSC_ROOT_DIR AND NOT $ENV{BLOSC_ROOT_DIR} STREQUAL "")
SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR}) SET(BLOSC_ROOT_DIR $ENV{BLOSC_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2022 Blender Foundation.
# - Find Brotli library (compression for freetype/woff2). # - Find Brotli library (compression for freetype/woff2).
# This module defines # This module defines
# BROTLI_INCLUDE_DIRS, where to find Brotli headers, Set when # BROTLI_INCLUDE_DIRS, where to find Brotli headers, Set when
@ -8,13 +11,6 @@
# BROTLI_FOUND, If false, do not try to use Brotli. # BROTLI_FOUND, If false, do not try to use Brotli.
# #
#=============================================================================
# Copyright 2022 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If BROTLI_ROOT_DIR was defined in the environment, use it. # If BROTLI_ROOT_DIR was defined in the environment, use it.
IF(NOT BROTLI_ROOT_DIR AND NOT $ENV{BROTLI_ROOT_DIR} STREQUAL "") IF(NOT BROTLI_ROOT_DIR AND NOT $ENV{BROTLI_ROOT_DIR} STREQUAL "")
SET(BROTLI_ROOT_DIR $ENV{BROTLI_ROOT_DIR}) SET(BROTLI_ROOT_DIR $ENV{BROTLI_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find Clang library # - Find Clang library
# Find the native Clang includes and library # Find the native Clang includes and library
# This module defines # This module defines
@ -8,13 +11,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# CLANG_FOUND, If false, do not try to use Clang. # CLANG_FOUND, If false, do not try to use Clang.
#=============================================================================
# Copyright 2021 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If CLANG_ROOT_DIR was defined in the environment, use it. # If CLANG_ROOT_DIR was defined in the environment, use it.
if(NOT CLANG_ROOT_DIR AND NOT $ENV{CLANG_ROOT_DIR} STREQUAL "") if(NOT CLANG_ROOT_DIR AND NOT $ENV{CLANG_ROOT_DIR} STREQUAL "")
set(CLANG_ROOT_DIR $ENV{CLANG_ROOT_DIR}) set(CLANG_ROOT_DIR $ENV{CLANG_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Blender Foundation.
# - Find clang-tidy executable # - Find clang-tidy executable
# #
# Find the native clang-tidy executable # Find the native clang-tidy executable
@ -14,13 +17,6 @@
# #
# CLANG_TIDY_FOUND, If false, do not try to use Eigen3. # CLANG_TIDY_FOUND, If false, do not try to use Eigen3.
#=============================================================================
# Copyright 2020 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If CLANG_TIDY_ROOT_DIR was defined in the environment, use it. # If CLANG_TIDY_ROOT_DIR was defined in the environment, use it.
if(NOT CLANG_TIDY_ROOT_DIR AND NOT $ENV{CLANG_TIDY_ROOT_DIR} STREQUAL "") if(NOT CLANG_TIDY_ROOT_DIR AND NOT $ENV{CLANG_TIDY_ROOT_DIR} STREQUAL "")
set(CLANG_TIDY_ROOT_DIR $ENV{CLANG_TIDY_ROOT_DIR}) set(CLANG_TIDY_ROOT_DIR $ENV{CLANG_TIDY_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 Blender Foundation.
# - Find Eigen3 library # - Find Eigen3 library
# Find the native Eigen3 includes and library # Find the native Eigen3 includes and library
# This module defines # This module defines
@ -6,13 +9,6 @@
# EIGEN3_ROOT_DIR, The base directory to search for Eigen3. # EIGEN3_ROOT_DIR, The base directory to search for Eigen3.
# This can also be an environment variable. # This can also be an environment variable.
# EIGEN3_FOUND, If false, do not try to use Eigen3. # EIGEN3_FOUND, If false, do not try to use Eigen3.
#
#=============================================================================
# Copyright 2015 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If EIGEN3_ROOT_DIR was defined in the environment, use it. # If EIGEN3_ROOT_DIR was defined in the environment, use it.
IF(NOT EIGEN3_ROOT_DIR AND NOT $ENV{EIGEN3_ROOT_DIR} STREQUAL "") IF(NOT EIGEN3_ROOT_DIR AND NOT $ENV{EIGEN3_ROOT_DIR} STREQUAL "")

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 Blender Foundation.
# - Find Embree library # - Find Embree library
# Find the native Embree includes and library # Find the native Embree includes and library
# This module defines # This module defines
@ -8,13 +11,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# EMBREEFOUND, If false, do not try to use Embree. # EMBREEFOUND, If false, do not try to use Embree.
#=============================================================================
# Copyright 2018 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If EMBREE_ROOT_DIR was defined in the environment, use it. # If EMBREE_ROOT_DIR was defined in the environment, use it.
IF(NOT EMBREE_ROOT_DIR AND NOT $ENV{EMBREE_ROOT_DIR} STREQUAL "") IF(NOT EMBREE_ROOT_DIR AND NOT $ENV{EMBREE_ROOT_DIR} STREQUAL "")
SET(EMBREE_ROOT_DIR $ENV{EMBREE_ROOT_DIR}) SET(EMBREE_ROOT_DIR $ENV{EMBREE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Blender Foundation.
# - Find FFmpeg library and includes. # - Find FFmpeg library and includes.
# Set FFMPEG_FIND_COMPONENTS to the canonical names of the libraries # Set FFMPEG_FIND_COMPONENTS to the canonical names of the libraries
# before using the module. # before using the module.
@ -8,12 +11,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# FFMPEG_FOUND, If false, do not try to use FFmpeg. # FFMPEG_FOUND, If false, do not try to use FFmpeg.
# FFMPEG_<COMPONENT>_LIBRARY, the given individual component libraries. # FFMPEG_<COMPONENT>_LIBRARY, the given individual component libraries.
#=============================================================================
# Copyright 2020 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If FFMPEG_ROOT_DIR was defined in the environment, use it. # If FFMPEG_ROOT_DIR was defined in the environment, use it.
if(NOT FFMPEG_ROOT_DIR AND NOT $ENV{FFMPEG_ROOT_DIR} STREQUAL "") if(NOT FFMPEG_ROOT_DIR AND NOT $ENV{FFMPEG_ROOT_DIR} STREQUAL "")

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find Fftw3 library # - Find Fftw3 library
# Find the native Fftw3 includes and library # Find the native Fftw3 includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# FFTW3_LIBRARY, where to find the Fftw3 library. # FFTW3_LIBRARY, where to find the Fftw3 library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If FFTW3_ROOT_DIR was defined in the environment, use it. # If FFTW3_ROOT_DIR was defined in the environment, use it.
IF(NOT FFTW3_ROOT_DIR AND NOT $ENV{FFTW3_ROOT_DIR} STREQUAL "") IF(NOT FFTW3_ROOT_DIR AND NOT $ENV{FFTW3_ROOT_DIR} STREQUAL "")
SET(FFTW3_ROOT_DIR $ENV{FFTW3_ROOT_DIR}) SET(FFTW3_ROOT_DIR $ENV{FFTW3_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation.
# - Find GLEW library # - Find GLEW library
# Find the native Glew includes and library # Find the native Glew includes and library
# This module defines # This module defines
@ -10,13 +13,6 @@
# also defined, # also defined,
# GLEW_LIBRARY, where to find the Glew library. # GLEW_LIBRARY, where to find the Glew library.
#=============================================================================
# Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If GLEW_ROOT_DIR was defined in the environment, use it. # If GLEW_ROOT_DIR was defined in the environment, use it.
IF(NOT GLEW_ROOT_DIR AND NOT $ENV{GLEW_ROOT_DIR} STREQUAL "") IF(NOT GLEW_ROOT_DIR AND NOT $ENV{GLEW_ROOT_DIR} STREQUAL "")
SET(GLEW_ROOT_DIR $ENV{GLEW_ROOT_DIR}) SET(GLEW_ROOT_DIR $ENV{GLEW_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find GMP library # - Find GMP library
# Find the native GMP includes and library # Find the native GMP includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# GMP_LIBRARY, where to find the GMP library. # GMP_LIBRARY, where to find the GMP library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If GMP_ROOT_DIR was defined in the environment, use it. # If GMP_ROOT_DIR was defined in the environment, use it.
IF(NOT GMP_ROOT_DIR AND NOT $ENV{GMP_ROOT_DIR} STREQUAL "") IF(NOT GMP_ROOT_DIR AND NOT $ENV{GMP_ROOT_DIR} STREQUAL "")
SET(GMP_ROOT_DIR $ENV{GMP_ROOT_DIR}) SET(GMP_ROOT_DIR $ENV{GMP_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2021 Blender Foundation.
# - Find HIP compiler # - Find HIP compiler
# #
# This module defines # This module defines
@ -6,13 +9,6 @@
# #
# HIP_FOUND, if the HIP toolkit is found. # HIP_FOUND, if the HIP toolkit is found.
#=============================================================================
# Copyright 2021 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If HIP_ROOT_DIR was defined in the environment, use it. # If HIP_ROOT_DIR was defined in the environment, use it.
if(NOT HIP_ROOT_DIR AND NOT $ENV{HIP_ROOT_DIR} STREQUAL "") if(NOT HIP_ROOT_DIR AND NOT $ENV{HIP_ROOT_DIR} STREQUAL "")
set(HIP_ROOT_DIR $ENV{HIP_ROOT_DIR}) set(HIP_ROOT_DIR $ENV{HIP_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2021 Blender Foundation.
# - Find HARU library # - Find HARU library
# Find the native Haru includes and library # Find the native Haru includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# HARU_LIBRARY, where to find the Haru library. # HARU_LIBRARY, where to find the Haru library.
#=============================================================================
# Copyright 2021 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If HARU_ROOT_DIR was defined in the environment, use it. # If HARU_ROOT_DIR was defined in the environment, use it.
if(NOT HARU_ROOT_DIR AND NOT $ENV{HARU_ROOT_DIR} STREQUAL "") if(NOT HARU_ROOT_DIR AND NOT $ENV{HARU_ROOT_DIR} STREQUAL "")
set(HARU_ROOT_DIR $ENV{HARU_ROOT_DIR}) set(HARU_ROOT_DIR $ENV{HARU_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2012 Blender Foundation.
# - Find static icu libraries # - Find static icu libraries
# Find the native static icu libraries (needed for static boost_locale :/ ). # Find the native static icu libraries (needed for static boost_locale :/ ).
# This module defines # This module defines
@ -9,13 +12,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# ICU_LIBRARY_xxx, where to find the icu libraries. # ICU_LIBRARY_xxx, where to find the icu libraries.
#=============================================================================
# Copyright 2012 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If ICU_ROOT_DIR was defined in the environment, use it. # If ICU_ROOT_DIR was defined in the environment, use it.
IF(NOT ICU_ROOT_DIR AND NOT $ENV{ICU_ROOT_DIR} STREQUAL "") IF(NOT ICU_ROOT_DIR AND NOT $ENV{ICU_ROOT_DIR} STREQUAL "")
SET(ICU_ROOT_DIR $ENV{ICU_ROOT_DIR}) SET(ICU_ROOT_DIR $ENV{ICU_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find JACK library # - Find JACK library
# Find the native JACK includes and library # Find the native JACK includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# JACK_LIBRARY, where to find the JACK library. # JACK_LIBRARY, where to find the JACK library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If JACK_ROOT_DIR was defined in the environment, use it. # If JACK_ROOT_DIR was defined in the environment, use it.
IF(NOT JACK_ROOT_DIR AND NOT $ENV{JACK_ROOT_DIR} STREQUAL "") IF(NOT JACK_ROOT_DIR AND NOT $ENV{JACK_ROOT_DIR} STREQUAL "")
SET(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR}) SET(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find JeMalloc library # - Find JeMalloc library
# Find the native JeMalloc includes and library # Find the native JeMalloc includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# JEMALLOC_LIBRARY, where to find the JeMalloc library. # JEMALLOC_LIBRARY, where to find the JeMalloc library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If JEMALLOC_ROOT_DIR was defined in the environment, use it. # If JEMALLOC_ROOT_DIR was defined in the environment, use it.
IF(NOT JEMALLOC_ROOT_DIR AND NOT $ENV{JEMALLOC_ROOT_DIR} STREQUAL "") IF(NOT JEMALLOC_ROOT_DIR AND NOT $ENV{JEMALLOC_ROOT_DIR} STREQUAL "")
SET(JEMALLOC_ROOT_DIR $ENV{JEMALLOC_ROOT_DIR}) SET(JEMALLOC_ROOT_DIR $ENV{JEMALLOC_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 Blender Foundation.
# - Find LLVM library # - Find LLVM library
# Find the native LLVM includes and library # Find the native LLVM includes and library
# This module defines # This module defines
@ -10,13 +13,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# LLVM_LIBRARY, where to find the LLVM library. # LLVM_LIBRARY, where to find the LLVM library.
#=============================================================================
# Copyright 2015 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
if(LLVM_ROOT_DIR) if(LLVM_ROOT_DIR)
if(DEFINED LLVM_VERSION) if(DEFINED LLVM_VERSION)
find_program(LLVM_CONFIG llvm-config-${LLVM_VERSION} HINTS ${LLVM_ROOT_DIR}/bin NO_CMAKE_PATH) find_program(LLVM_CONFIG llvm-config-${LLVM_VERSION} HINTS ${LLVM_ROOT_DIR}/bin NO_CMAKE_PATH)

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 Blender Foundation.
# - Find LZO library # - Find LZO library
# Find the native LZO includes and library # Find the native LZO includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# LZO_LIBRARY, where to find the LZO library. # LZO_LIBRARY, where to find the LZO library.
#=============================================================================
# Copyright 2015 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If LZO_ROOT_DIR was defined in the environment, use it. # If LZO_ROOT_DIR was defined in the environment, use it.
IF(NOT LZO_ROOT_DIR AND NOT $ENV{LZO_ROOT_DIR} STREQUAL "") IF(NOT LZO_ROOT_DIR AND NOT $ENV{LZO_ROOT_DIR} STREQUAL "")
SET(LZO_ROOT_DIR $ENV{LZO_ROOT_DIR}) SET(LZO_ROOT_DIR $ENV{LZO_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Blender Foundation.
# - Find NanoVDB library # - Find NanoVDB library
# Find the native NanoVDB includes and library # Find the native NanoVDB includes and library
# This module defines # This module defines
@ -7,13 +10,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# NANOVDB_FOUND, If false, do not try to use NanoVDB. # NANOVDB_FOUND, If false, do not try to use NanoVDB.
#=============================================================================
# Copyright 2020 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If NANOVDB_ROOT_DIR was defined in the environment, use it. # If NANOVDB_ROOT_DIR was defined in the environment, use it.
IF(NOT NANOVDB_ROOT_DIR AND NOT $ENV{NANOVDB_ROOT_DIR} STREQUAL "") IF(NOT NANOVDB_ROOT_DIR AND NOT $ENV{NANOVDB_ROOT_DIR} STREQUAL "")
SET(NANOVDB_ROOT_DIR $ENV{NANOVDB_ROOT_DIR}) SET(NANOVDB_ROOT_DIR $ENV{NANOVDB_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation.
# - Find OpenShadingLanguage library # - Find OpenShadingLanguage library
# Find the native OpenShadingLanguage includes and library # Find the native OpenShadingLanguage includes and library
# This module defines # This module defines
@ -10,13 +13,6 @@
# OSL_FOUND, if false, do not try to use OSL. # OSL_FOUND, if false, do not try to use OSL.
# OSL_LIBRARY_VERSION_MAJOR, OSL_LIBRARY_VERSION_MINOR, the major # OSL_LIBRARY_VERSION_MAJOR, OSL_LIBRARY_VERSION_MINOR, the major
# and minor versions of OSL library if found. # and minor versions of OSL library if found.
#
#=============================================================================
# Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OSL_ROOT_DIR was defined in the environment, use it. # If OSL_ROOT_DIR was defined in the environment, use it.
IF(NOT OSL_ROOT_DIR AND NOT $ENV{OSL_ROOT_DIR} STREQUAL "") IF(NOT OSL_ROOT_DIR AND NOT $ENV{OSL_ROOT_DIR} STREQUAL "")

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find OpenCOLLADA library # - Find OpenCOLLADA library
# Find the native OpenCOLLADA includes and library # Find the native OpenCOLLADA includes and library
# This module defines # This module defines
@ -8,13 +11,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# OPENCOLLADA_FOUND, If false, do not try to use OpenCOLLADA. # OPENCOLLADA_FOUND, If false, do not try to use OpenCOLLADA.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# note about include paths, there are 2 ways includes are set # note about include paths, there are 2 ways includes are set
# #
# Where '/usr/include/opencollada' is the root dir: # Where '/usr/include/opencollada' is the root dir:

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2012 Blender Foundation.
# - Find OpenColorIO library # - Find OpenColorIO library
# Find the native OpenColorIO includes and library # Find the native OpenColorIO includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENCOLORIO_LIBRARY, where to find the OpenColorIO library. # OPENCOLORIO_LIBRARY, where to find the OpenColorIO library.
#=============================================================================
# Copyright 2012 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENCOLORIO_ROOT_DIR was defined in the environment, use it. # If OPENCOLORIO_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENCOLORIO_ROOT_DIR AND NOT $ENV{OPENCOLORIO_ROOT_DIR} STREQUAL "") IF(NOT OPENCOLORIO_ROOT_DIR AND NOT $ENV{OPENCOLORIO_ROOT_DIR} STREQUAL "")
SET(OPENCOLORIO_ROOT_DIR $ENV{OPENCOLORIO_ROOT_DIR}) SET(OPENCOLORIO_ROOT_DIR $ENV{OPENCOLORIO_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find OpenEXR library # - Find OpenEXR library
# Find the native OpenEXR includes and library # Find the native OpenEXR includes and library
# This module defines # This module defines
@ -18,13 +21,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENEXR_LIBRARY, where to find the OpenEXR library. # OPENEXR_LIBRARY, where to find the OpenEXR library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENEXR_ROOT_DIR was defined in the environment, use it. # If OPENEXR_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENEXR_ROOT_DIR AND NOT $ENV{OPENEXR_ROOT_DIR} STREQUAL "") IF(NOT OPENEXR_ROOT_DIR AND NOT $ENV{OPENEXR_ROOT_DIR} STREQUAL "")
SET(OPENEXR_ROOT_DIR $ENV{OPENEXR_ROOT_DIR}) SET(OPENEXR_ROOT_DIR $ENV{OPENEXR_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation.
# - Try to find OpenGLES # - Try to find OpenGLES
# Once done this will define # Once done this will define
# #
@ -10,13 +13,6 @@
# OPENGLES_LIBRARIES - all libraries needed for OpenGLES # OPENGLES_LIBRARIES - all libraries needed for OpenGLES
# OPENGLES_INCLUDES - all includes needed for OpenGLES # OPENGLES_INCLUDES - all includes needed for OpenGLES
#=============================================================================
# Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENGLES_ROOT_DIR was defined in the environment, use it. # If OPENGLES_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENGLES_ROOT_DIR AND NOT $ENV{OPENGLES_ROOT_DIR} STREQUAL "") IF(NOT OPENGLES_ROOT_DIR AND NOT $ENV{OPENGLES_ROOT_DIR} STREQUAL "")
SET(OPENGLES_ROOT_DIR $ENV{OPENGLES_ROOT_DIR}) SET(OPENGLES_ROOT_DIR $ENV{OPENGLES_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019 Blender Foundation.
# - Find OpenImageDenoise library # - Find OpenImageDenoise library
# Find the native OpenImageDenoise includes and library # Find the native OpenImageDenoise includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENIMAGEDENOISE_LIBRARY, where to find the OpenImageDenoise library. # OPENIMAGEDENOISE_LIBRARY, where to find the OpenImageDenoise library.
#=============================================================================
# Copyright 2019 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENIMAGEDENOISE_ROOT_DIR was defined in the environment, use it. # If OPENIMAGEDENOISE_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENIMAGEDENOISE_ROOT_DIR AND NOT $ENV{OPENIMAGEDENOISE_ROOT_DIR} STREQUAL "") IF(NOT OPENIMAGEDENOISE_ROOT_DIR AND NOT $ENV{OPENIMAGEDENOISE_ROOT_DIR} STREQUAL "")
SET(OPENIMAGEDENOISE_ROOT_DIR $ENV{OPENIMAGEDENOISE_ROOT_DIR}) SET(OPENIMAGEDENOISE_ROOT_DIR $ENV{OPENIMAGEDENOISE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find OpenImageIO library # - Find OpenImageIO library
# Find the native OpenImageIO includes and library # Find the native OpenImageIO includes and library
# This module defines # This module defines
@ -13,13 +16,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENIMAGEIO_LIBRARY, where to find the OpenImageIO library. # OPENIMAGEIO_LIBRARY, where to find the OpenImageIO library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENIMAGEIO_ROOT_DIR was defined in the environment, use it. # If OPENIMAGEIO_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENIMAGEIO_ROOT_DIR AND NOT $ENV{OPENIMAGEIO_ROOT_DIR} STREQUAL "") IF(NOT OPENIMAGEIO_ROOT_DIR AND NOT $ENV{OPENIMAGEIO_ROOT_DIR} STREQUAL "")
SET(OPENIMAGEIO_ROOT_DIR $ENV{OPENIMAGEIO_ROOT_DIR}) SET(OPENIMAGEIO_ROOT_DIR $ENV{OPENIMAGEIO_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find OpenJPEG library # - Find OpenJPEG library
# Find the native OpenJPEG includes and library # Find the native OpenJPEG includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENJPEG_LIBRARY, where to find the OpenJPEG library. # OPENJPEG_LIBRARY, where to find the OpenJPEG library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENJPEG_ROOT_DIR was defined in the environment, use it. # If OPENJPEG_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENJPEG_ROOT_DIR AND NOT $ENV{OPENJPEG_ROOT_DIR} STREQUAL "") IF(NOT OPENJPEG_ROOT_DIR AND NOT $ENV{OPENJPEG_ROOT_DIR} STREQUAL "")
SET(OPENJPEG_ROOT_DIR $ENV{OPENJPEG_ROOT_DIR}) SET(OPENJPEG_ROOT_DIR $ENV{OPENJPEG_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2013 Blender Foundation.
# - Find OpenSubdiv library # - Find OpenSubdiv library
# Find the native OpenSubdiv includes and library # Find the native OpenSubdiv includes and library
# This module defines # This module defines
@ -8,13 +11,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# OPENSUBDIV_FOUND, if false, do not try to use OpenSubdiv. # OPENSUBDIV_FOUND, if false, do not try to use OpenSubdiv.
#=============================================================================
# Copyright 2013 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENSUBDIV_ROOT_DIR was defined in the environment, use it. # If OPENSUBDIV_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENSUBDIV_ROOT_DIR AND NOT $ENV{OPENSUBDIV_ROOT_DIR} STREQUAL "") IF(NOT OPENSUBDIV_ROOT_DIR AND NOT $ENV{OPENSUBDIV_ROOT_DIR} STREQUAL "")
SET(OPENSUBDIV_ROOT_DIR $ENV{OPENSUBDIV_ROOT_DIR}) SET(OPENSUBDIV_ROOT_DIR $ENV{OPENSUBDIV_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 Blender Foundation.
# - Find OPENVDB library # - Find OPENVDB library
# Find the native OPENVDB includes and library # Find the native OPENVDB includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# OPENVDB_LIBRARY, where to find the OPENVDB library. # OPENVDB_LIBRARY, where to find the OPENVDB library.
#=============================================================================
# Copyright 2015 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPENVDB_ROOT_DIR was defined in the environment, use it. # If OPENVDB_ROOT_DIR was defined in the environment, use it.
IF(NOT OPENVDB_ROOT_DIR AND NOT $ENV{OPENVDB_ROOT_DIR} STREQUAL "") IF(NOT OPENVDB_ROOT_DIR AND NOT $ENV{OPENVDB_ROOT_DIR} STREQUAL "")
SET(OPENVDB_ROOT_DIR $ENV{OPENVDB_ROOT_DIR}) SET(OPENVDB_ROOT_DIR $ENV{OPENVDB_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019 Blender Foundation.
# - Find OptiX library # - Find OptiX library
# Find the native OptiX includes and library # Find the native OptiX includes and library
# This module defines # This module defines
@ -7,13 +10,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# OPTIX_FOUND, If false, do not try to use OptiX. # OPTIX_FOUND, If false, do not try to use OptiX.
#=============================================================================
# Copyright 2019 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If OPTIX_ROOT_DIR was defined in the environment, use it. # If OPTIX_ROOT_DIR was defined in the environment, use it.
IF(NOT OPTIX_ROOT_DIR AND NOT $ENV{OPTIX_ROOT_DIR} STREQUAL "") IF(NOT OPTIX_ROOT_DIR AND NOT $ENV{OPTIX_ROOT_DIR} STREQUAL "")
SET(OPTIX_ROOT_DIR $ENV{OPTIX_ROOT_DIR}) SET(OPTIX_ROOT_DIR $ENV{OPTIX_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find PCRE library # - Find PCRE library
# Find the native PCRE includes and library # Find the native PCRE includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# PCRE_LIBRARY, where to find the PCRE library. # PCRE_LIBRARY, where to find the PCRE library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If PCRE_ROOT_DIR was defined in the environment, use it. # If PCRE_ROOT_DIR was defined in the environment, use it.
IF(NOT PCRE_ROOT_DIR AND NOT $ENV{PCRE_ROOT_DIR} STREQUAL "") IF(NOT PCRE_ROOT_DIR AND NOT $ENV{PCRE_ROOT_DIR} STREQUAL "")
SET(PCRE_ROOT_DIR $ENV{PCRE_ROOT_DIR}) SET(PCRE_ROOT_DIR $ENV{PCRE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Blender Foundation.
# - Find potrace library # - Find potrace library
# Find the potrace include and library # Find the potrace include and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# POTRACE_LIBRARY, where to find the POTRACE library. # POTRACE_LIBRARY, where to find the POTRACE library.
#=============================================================================
# Copyright 2020 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If POTRACE_ROOT_DIR was defined in the environment, use it. # If POTRACE_ROOT_DIR was defined in the environment, use it.
IF(NOT POTRACE_ROOT_DIR AND NOT $ENV{POTRACE_ROOT_DIR} STREQUAL "") IF(NOT POTRACE_ROOT_DIR AND NOT $ENV{POTRACE_ROOT_DIR} STREQUAL "")
SET(POTRACE_ROOT_DIR $ENV{POTRACE_ROOT_DIR}) SET(POTRACE_ROOT_DIR $ENV{POTRACE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation.
# - Find PugiXML library # - Find PugiXML library
# Find the native PugiXML includes and library # Find the native PugiXML includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# PUGIXML_LIBRARY, where to find the PugiXML library. # PUGIXML_LIBRARY, where to find the PugiXML library.
#=============================================================================
# Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If PUGIXML_ROOT_DIR was defined in the environment, use it. # If PUGIXML_ROOT_DIR was defined in the environment, use it.
IF(NOT PUGIXML_ROOT_DIR AND NOT $ENV{PUGIXML_ROOT_DIR} STREQUAL "") IF(NOT PUGIXML_ROOT_DIR AND NOT $ENV{PUGIXML_ROOT_DIR} STREQUAL "")
SET(PUGIXML_ROOT_DIR $ENV{PUGIXML_ROOT_DIR}) SET(PUGIXML_ROOT_DIR $ENV{PUGIXML_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2021 Blender Foundation.
# - Find PulseAudio library # - Find PulseAudio library
# Find the native PulseAudio includes and library # Find the native PulseAudio includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# LIBPULSE_LIBRARY, where to find the PulseAudio library. # LIBPULSE_LIBRARY, where to find the PulseAudio library.
#=============================================================================
# Copyright 2021 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If LIBPULSE_ROOT_DIR was defined in the environment, use it. # If LIBPULSE_ROOT_DIR was defined in the environment, use it.
IF(NOT LIBPULSE_ROOT_DIR AND NOT $ENV{LIBPULSE_ROOT_DIR} STREQUAL "") IF(NOT LIBPULSE_ROOT_DIR AND NOT $ENV{LIBPULSE_ROOT_DIR} STREQUAL "")
SET(LIBPULSE_ROOT_DIR $ENV{LIBPULSE_ROOT_DIR}) SET(LIBPULSE_ROOT_DIR $ENV{LIBPULSE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find Python libraries # - Find Python libraries
# Find the native Python includes and library # Find the native Python includes and library
# #
@ -22,13 +25,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# PYTHON_LIBRARY, where to find the python library. # PYTHON_LIBRARY, where to find the python library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If PYTHON_ROOT_DIR was defined in the environment, use it. # If PYTHON_ROOT_DIR was defined in the environment, use it.
IF(NOT PYTHON_ROOT_DIR AND NOT $ENV{PYTHON_ROOT_DIR} STREQUAL "") IF(NOT PYTHON_ROOT_DIR AND NOT $ENV{PYTHON_ROOT_DIR} STREQUAL "")
SET(PYTHON_ROOT_DIR $ENV{PYTHON_ROOT_DIR}) SET(PYTHON_ROOT_DIR $ENV{PYTHON_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 Blender Foundation.
# - Find SDL library # - Find SDL library
# Find the native SDL includes and library # Find the native SDL includes and library
# This module defines # This module defines
@ -10,13 +13,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# SDL2_LIBRARY, where to find the SDL library. # SDL2_LIBRARY, where to find the SDL library.
#=============================================================================
# Copyright 2015 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If SDL2_ROOT_DIR was defined in the environment, use it. # If SDL2_ROOT_DIR was defined in the environment, use it.
IF(NOT SDL2_ROOT_DIR AND NOT $ENV{SDL2_ROOT_DIR} STREQUAL "") IF(NOT SDL2_ROOT_DIR AND NOT $ENV{SDL2_ROOT_DIR} STREQUAL "")
SET(SDL2_ROOT_DIR $ENV{SDL2_ROOT_DIR}) SET(SDL2_ROOT_DIR $ENV{SDL2_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find SndFile library # - Find SndFile library
# Find the native SndFile includes and library # Find the native SndFile includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# LIBSNDFILE_LIBRARY, where to find the SndFile library. # LIBSNDFILE_LIBRARY, where to find the SndFile library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If LIBSNDFILE_ROOT_DIR was defined in the environment, use it. # If LIBSNDFILE_ROOT_DIR was defined in the environment, use it.
IF(NOT LIBSNDFILE_ROOT_DIR AND NOT $ENV{LIBSNDFILE_ROOT_DIR} STREQUAL "") IF(NOT LIBSNDFILE_ROOT_DIR AND NOT $ENV{LIBSNDFILE_ROOT_DIR} STREQUAL "")
SET(LIBSNDFILE_ROOT_DIR $ENV{LIBSNDFILE_ROOT_DIR}) SET(LIBSNDFILE_ROOT_DIR $ENV{LIBSNDFILE_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find Spacenav library # - Find Spacenav library
# Find the native Spacenav includes and library # Find the native Spacenav includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# SPACENAV_LIBRARY, where to find the Spacenav library. # SPACENAV_LIBRARY, where to find the Spacenav library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If SPACENAV_ROOT_DIR was defined in the environment, use it. # If SPACENAV_ROOT_DIR was defined in the environment, use it.
IF(NOT SPACENAV_ROOT_DIR AND NOT $ENV{SPACENAV_ROOT_DIR} STREQUAL "") IF(NOT SPACENAV_ROOT_DIR AND NOT $ENV{SPACENAV_ROOT_DIR} STREQUAL "")
SET(SPACENAV_ROOT_DIR $ENV{SPACENAV_ROOT_DIR}) SET(SPACENAV_ROOT_DIR $ENV{SPACENAV_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016 Blender Foundation.
# - Find TBB library # - Find TBB library
# Find the native TBB includes and library # Find the native TBB includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# TBB_LIBRARY, where to find the TBB library. # TBB_LIBRARY, where to find the TBB library.
#=============================================================================
# Copyright 2016 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If TBB_ROOT_DIR was defined in the environment, use it. # If TBB_ROOT_DIR was defined in the environment, use it.
IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "") IF(NOT TBB_ROOT_DIR AND NOT $ENV{TBB_ROOT_DIR} STREQUAL "")
SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR}) SET(TBB_ROOT_DIR $ENV{TBB_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019 Blender Foundation.
# - Find Universal Scene Description (USD) library # - Find Universal Scene Description (USD) library
# Find the native USD includes and libraries # Find the native USD includes and libraries
# This module defines # This module defines
@ -9,13 +12,6 @@
# USD_FOUND, If false, do not try to use USD. # USD_FOUND, If false, do not try to use USD.
# #
#=============================================================================
# Copyright 2019 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If USD_ROOT_DIR was defined in the environment, use it. # If USD_ROOT_DIR was defined in the environment, use it.
IF(NOT USD_ROOT_DIR AND NOT $ENV{USD_ROOT_DIR} STREQUAL "") IF(NOT USD_ROOT_DIR AND NOT $ENV{USD_ROOT_DIR} STREQUAL "")
SET(USD_ROOT_DIR $ENV{USD_ROOT_DIR}) SET(USD_ROOT_DIR $ENV{USD_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2011 Blender Foundation.
# - Find XML2 library # - Find XML2 library
# Find the native XML2 includes and library # Find the native XML2 includes and library
# This module defines # This module defines
@ -11,13 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# XML2_LIBRARY, where to find the XML2 library. # XML2_LIBRARY, where to find the XML2 library.
#=============================================================================
# Copyright 2011 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If XML2_ROOT_DIR was defined in the environment, use it. # If XML2_ROOT_DIR was defined in the environment, use it.
IF(NOT XML2_ROOT_DIR AND NOT $ENV{XML2_ROOT_DIR} STREQUAL "") IF(NOT XML2_ROOT_DIR AND NOT $ENV{XML2_ROOT_DIR} STREQUAL "")
SET(XML2_ROOT_DIR $ENV{XML2_ROOT_DIR}) SET(XML2_ROOT_DIR $ENV{XML2_ROOT_DIR})

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# - Find OpenXR-SDK libraries # - Find OpenXR-SDK libraries
# Find the native OpenXR-SDK includes and libraries # Find the native OpenXR-SDK includes and libraries
# #
@ -19,11 +21,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# XR_OPENXR_SDK_LOADER_LIBRARY, where to find the OpenXR-SDK loader library. # XR_OPENXR_SDK_LOADER_LIBRARY, where to find the OpenXR-SDK loader library.
#=============================================================================
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If XR_OPENXR_SDK_ROOT_DIR was defined in the environment, use it. # If XR_OPENXR_SDK_ROOT_DIR was defined in the environment, use it.
IF(NOT XR_OPENXR_SDK_ROOT_DIR AND NOT $ENV{XR_OPENXR_SDK_ROOT_DIR} STREQUAL "") IF(NOT XR_OPENXR_SDK_ROOT_DIR AND NOT $ENV{XR_OPENXR_SDK_ROOT_DIR} STREQUAL "")
SET(XR_OPENXR_SDK_ROOT_DIR $ENV{XR_OPENXR_SDK_ROOT_DIR}) SET(XR_OPENXR_SDK_ROOT_DIR $ENV{XR_OPENXR_SDK_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019 Blender Foundation.
# - Find Zstd library # - Find Zstd library
# Find the native Zstd includes and library # Find the native Zstd includes and library
# This module defines # This module defines
@ -11,17 +14,6 @@
# also defined, but not for general use are # also defined, but not for general use are
# ZSTD_LIBRARY, where to find the Zstd library. # ZSTD_LIBRARY, where to find the Zstd library.
#=============================================================================
# Copyright 2019 Blender Foundation.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# If ZSTD_ROOT_DIR was defined in the environment, use it. # If ZSTD_ROOT_DIR was defined in the environment, use it.
IF(NOT ZSTD_ROOT_DIR AND NOT $ENV{ZSTD_ROOT_DIR} STREQUAL "") IF(NOT ZSTD_ROOT_DIR AND NOT $ENV{ZSTD_ROOT_DIR} STREQUAL "")
SET(ZSTD_ROOT_DIR $ENV{ZSTD_ROOT_DIR}) SET(ZSTD_ROOT_DIR $ENV{ZSTD_ROOT_DIR})

View File

@ -1,3 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Blender Foundation.
# - Find sse2neon library # - Find sse2neon library
# Find the native sse2neon includes and library # Find the native sse2neon includes and library
# This module defines # This module defines
@ -7,13 +10,6 @@
# This can also be an environment variable. # This can also be an environment variable.
# SSE2NEON_FOUND, If false, do not try to use sse2neon. # SSE2NEON_FOUND, If false, do not try to use sse2neon.
#=============================================================================
# Copyright 2020 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#=============================================================================
# If SSE2NEON_ROOT_DIR was defined in the environment, use it. # If SSE2NEON_ROOT_DIR was defined in the environment, use it.
IF(NOT SSE2NEON_ROOT_DIR AND NOT $ENV{SSE2NEON_ROOT_DIR} STREQUAL "") IF(NOT SSE2NEON_ROOT_DIR AND NOT $ENV{SSE2NEON_ROOT_DIR} STREQUAL "")
SET(SSE2NEON_ROOT_DIR $ENV{SSE2NEON_ROOT_DIR}) SET(SSE2NEON_ROOT_DIR $ENV{SSE2NEON_ROOT_DIR})

View File

@ -1,5 +1,4 @@
# Distributed under the OSI-approved BSD 3-Clause License, # SPDX-License-Identifier: BSD-3-Clause
# see accompanying file BSD-3-Clause-license.txt for details.
#[=======================================================================[.rst: #[=======================================================================[.rst:
GoogleTest GoogleTest

View File

@ -1,12 +1,7 @@
#============================================================================= # SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 Blender Foundation. # Copyright 2014 Blender Foundation.
#
# Distributed under the OSI-approved BSD 3-Clause License,
# see accompanying file BSD-3-Clause-license.txt for details.
#
# Inspired on the Testing.cmake from Libmv # Inspired on the Testing.cmake from Libmv
#
#=============================================================================
function(GET_BLENDER_TEST_INSTALL_DIR VARIABLE_NAME) function(GET_BLENDER_TEST_INSTALL_DIR VARIABLE_NAME)
get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

View File

@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# VLMC RPM Finder # VLMC RPM Finder
# Authors: Rohit Yadav <rohityadav89@gmail.com> # Authors: Rohit Yadav <rohityadav89@gmail.com>
#
if(NOT DEFINED RPMBUILD) if(NOT DEFINED RPMBUILD)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# This is called by cmake as an external process from # This is called by cmake as an external process from
# ./source/creator/CMakeLists.txt to write ./source/creator/buildinfo.h # ./source/creator/CMakeLists.txt to write ./source/creator/buildinfo.h
# Caller must define: # Caller must define:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Configuration for developers, with faster builds, error checking and tests. # Configuration for developers, with faster builds, error checking and tests.
# #
# Example usage: # Example usage:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Turn everything ON that's expected for an official release builds. # Turn everything ON that's expected for an official release builds.
# #
# Example usage: # Example usage:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# headless configuration, useful in for servers or renderfarms # headless configuration, useful in for servers or renderfarms
# builds without a windowing system (X11/Windows/Cocoa). # builds without a windowing system (X11/Windows/Cocoa).
# #

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# turn everything OFF except for python which defaults to ON # turn everything OFF except for python which defaults to ON
# and is needed for the UI # and is needed for the UI
# #

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Turn everything ON that's expected for an official release builds. # Turn everything ON that's expected for an official release builds.
# #
# Example usage: # Example usage:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# defaults for building blender as a python module 'bpy' # defaults for building blender as a python module 'bpy'
# #
# Example usage: # Example usage:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# only compile Cycles standalone, without Blender # only compile Cycles standalone, without Blender
# #
# Example usage: # Example usage:

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
string(TIMESTAMP CURRENT_YEAR "%Y") string(TIMESTAMP CURRENT_YEAR "%Y")
set(PROJECT_DESCRIPTION "Blender is the free and open source 3D creation suite software.") set(PROJECT_DESCRIPTION "Blender is the free and open source 3D creation suite software.")

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# First generate the manifest for tests since it will not need the dependency on the CRT. # First generate the manifest for tests since it will not need the dependency on the CRT.
configure_file(${CMAKE_SOURCE_DIR}/release/windows/manifest/blender.exe.manifest.in ${CMAKE_CURRENT_BINARY_DIR}/tests.exe.manifest @ONLY) configure_file(${CMAKE_SOURCE_DIR}/release/windows/manifest/blender.exe.manifest.in ${CMAKE_CURRENT_BINARY_DIR}/tests.exe.manifest @ONLY)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
remove_strict_flags() remove_strict_flags()
set(SRC set(SRC

View File

@ -1,23 +1,5 @@
# ***** BEGIN LGPL LICENSE BLOCK ***** # SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright 2009 Jrg Hermann Mller # Copyright 2009 Jrg Hermann Mller
#
# This file is part of AudaSpace.
#
# AudaSpace is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# AudaSpace is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
#
# ***** END LGPL LICENSE BLOCK *****
remove_strict_flags() remove_strict_flags()

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# see "cmake --help-policy CMP0003" # see "cmake --help-policy CMP0003"
# So library linking is more sane # So library linking is more sane

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Always run tests from install path, so all required scripts and libraries # Always run tests from install path, so all required scripts and libraries
# are available and we are testing the actual installation layout. # are available and we are testing the actual installation layout.

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
if(WITH_GTESTS) if(WITH_GTESTS)
# Otherwise we get warnings here that we can't fix in external projects # Otherwise we get warnings here that we can't fix in external projects