Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArto Kitula <arto.kitula@gmail.com>2017-09-20 13:20:23 +0300
committerArto Kitula <arto.kitula@gmail.com>2017-09-20 13:20:23 +0300
commit99c9f17098ea44ceb4b51663fea4f1dd4c81160b (patch)
tree46b3d22ce39087b1d370a9578058bb18a0fc4c14 /build_files
parenta2d246c5c0b6abffc1f12f288bfe275121fb943e (diff)
deps build: correct sndfile fix
Diffstat (limited to 'build_files')
-rw-r--r--build_files/build_environment/cmake/sndfile.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/build_files/build_environment/cmake/sndfile.cmake b/build_files/build_environment/cmake/sndfile.cmake
index d54a71dd7ce..bc9574f2d77 100644
--- a/build_files/build_environment/cmake/sndfile.cmake
+++ b/build_files/build_environment/cmake/sndfile.cmake
@@ -27,12 +27,18 @@ else()
set(SNDFILE_OPTIONS --enable-static --disable-shared )
endif()
+if(APPLE)
+ set(SNDFILE_CONFIGURE_ENV echo .)
+else()
+ set(SNDFILE_CONFIGURE_ENV ${CONFIGURE_ENV})
+endif()
+
ExternalProject_Add(external_sndfile
URL ${SNDFILE_URI}
DOWNLOAD_DIR ${DOWNLOAD_DIR}
URL_HASH MD5=${SNDFILE_HASH}
PREFIX ${BUILD_DIR}/sndfile
- CONFIGURE_COMMAND cd ${BUILD_DIR}/sndfile/src/external_sndfile/ && ${SNDFILE_ENV} ${CONFIGURE_COMMAND} ${SNDFILE_OPTIONS} --prefix=${mingw_LIBDIR}/sndfile
+ CONFIGURE_COMMAND ${SNDFILE_CONFIGURE_ENV} && cd ${BUILD_DIR}/sndfile/src/external_sndfile/ && ${SNDFILE_ENV} ${CONFIGURE_COMMAND} ${SNDFILE_OPTIONS} --prefix=${mingw_LIBDIR}/sndfile
BUILD_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/sndfile/src/external_sndfile/ && make -j${MAKE_THREADS}
INSTALL_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/sndfile/src/external_sndfile/ && make install
INSTALL_DIR ${LIBDIR}/sndfile