Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
24 lines
746 B
CMake
24 lines
746 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
if(APPLE)
|
|
set(OPENMP_PATCH_COMMAND ${PATCH_CMD} -p 1 -d ${BUILD_DIR}/openmp/src/external_openmp < ${PATCH_DIR}/openmp.diff)
|
|
else()
|
|
set(OPENMP_PATCH_COMMAND)
|
|
endif()
|
|
|
|
ExternalProject_Add(external_openmp
|
|
URL file://${PACKAGE_DIR}/${OPENMP_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${OPENMP_HASH_TYPE}=${OPENMP_HASH}
|
|
PREFIX ${BUILD_DIR}/openmp
|
|
PATCH_COMMAND ${OPENMP_PATCH_COMMAND}
|
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/openmp ${DEFAULT_CMAKE_FLAGS}
|
|
INSTALL_COMMAND cd ${BUILD_DIR}/openmp/src/external_openmp-build && install_name_tool -id @rpath/libomp.dylib runtime/src/libomp.dylib && make install
|
|
INSTALL_DIR ${LIBDIR}/openmp
|
|
)
|
|
|
|
add_dependencies(
|
|
external_openmp
|
|
ll
|
|
)
|