Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 1,509 Lines • ▼ Show 20 Lines | elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") | ||||
| string(REPLACE ";" " " _WARNINGS "${_WARNINGS}") | string(REPLACE ";" " " _WARNINGS "${_WARNINGS}") | ||||
| set(C_WARNINGS "${_WARNINGS}") | set(C_WARNINGS "${_WARNINGS}") | ||||
| set(CXX_WARNINGS "${_WARNINGS}") | set(CXX_WARNINGS "${_WARNINGS}") | ||||
| unset(_WARNINGS) | unset(_WARNINGS) | ||||
| endif() | endif() | ||||
| # ensure python header is found since detection can fail, this could happen | # ensure python header is found since detection can fail, this could happen | ||||
| # with _any_ library but since we used a fixed python version this tends to | # with _any_ library but since we used a fixed python version this tends to | ||||
campbellbarton: There is no need to cache this, it can be a global property, see: `DELAYED_INSTALL_FILES` | |||||
| # be most problematic. | # be most problematic. | ||||
| if(WITH_PYTHON) | if(WITH_PYTHON) | ||||
| if(NOT EXISTS "${PYTHON_INCLUDE_DIR}/Python.h") | if(NOT EXISTS "${PYTHON_INCLUDE_DIR}/Python.h") | ||||
| message(FATAL_ERROR | message(FATAL_ERROR | ||||
| "Missing: \"${PYTHON_INCLUDE_DIR}/Python.h\",\n" | "Missing: \"${PYTHON_INCLUDE_DIR}/Python.h\",\n" | ||||
| "Set the cache entry 'PYTHON_INCLUDE_DIR' to point " | "Set the cache entry 'PYTHON_INCLUDE_DIR' to point " | ||||
| "to a valid python include path. Containing " | "to a valid python include path. Containing " | ||||
| "Python.h for python version \"${PYTHON_VERSION}\"" | "Python.h for python version \"${PYTHON_VERSION}\"" | ||||
| ) | ) | ||||
| endif() | endif() | ||||
Done Inline Actionspicky, should be "|/addons_contrib/*" campbellbarton: picky, should be `"|/addons_contrib/*"` | |||||
| # List with REGEX values that control which directories will be excluded at installation. | |||||
| set_property(GLOBAL PROPERTY ADDON_CPYTHON_SOURCES "") | |||||
| # TODO: Add CMakeLists.txt by default. | |||||
| if(EXISTS ${CMAKE_SOURCE_DIR}/release/scripts/addons_contrib/CMakeLists.txt) | |||||
| add_subdirectory(release/scripts/addons_contrib) | |||||
| endif() | |||||
| # TODO: Add CMakeLists.txt by default. | |||||
| if(EXISTS ${CMAKE_SOURCE_DIR}/release/scripts/addons/CMakeLists.txt) | |||||
| add_subdirectory(release/scripts/addons) | |||||
| endif() | |||||
| if(WIN32 OR APPLE) | if(WIN32 OR APPLE) | ||||
| # Windows and macOS have this bundled with Python libraries. | # Windows and macOS have this bundled with Python libraries. | ||||
| elseif((WITH_PYTHON_INSTALL AND WITH_PYTHON_INSTALL_NUMPY) OR (WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)) | elseif((WITH_PYTHON_INSTALL AND WITH_PYTHON_INSTALL_NUMPY) OR (WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)) | ||||
| if(("${PYTHON_NUMPY_PATH}" STREQUAL "") OR (${PYTHON_NUMPY_PATH} MATCHES NOTFOUND)) | if(("${PYTHON_NUMPY_PATH}" STREQUAL "") OR (${PYTHON_NUMPY_PATH} MATCHES NOTFOUND)) | ||||
| find_python_package(numpy) | find_python_package(numpy) | ||||
| unset(PYTHON_NUMPY_INCLUDE_DIRS CACHE) | unset(PYTHON_NUMPY_INCLUDE_DIRS CACHE) | ||||
| set(PYTHON_NUMPY_INCLUDE_DIRS ${PYTHON_NUMPY_PATH}/numpy/core/include CACHE PATH "Path to the include directory of the numpy module") | set(PYTHON_NUMPY_INCLUDE_DIRS ${PYTHON_NUMPY_PATH}/numpy/core/include CACHE PATH "Path to the include directory of the numpy module") | ||||
| mark_as_advanced(PYTHON_NUMPY_INCLUDE_DIRS) | mark_as_advanced(PYTHON_NUMPY_INCLUDE_DIRS) | ||||
| ▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines | |||||
There is no need to cache this, it can be a global property, see: DELAYED_INSTALL_FILES