Add OpenVDB (and sub libraries) the new way

This commit is contained in:
tamasmeszaros 2021-03-22 13:36:42 +01:00
parent f4733e69fc
commit 8753c63e72
10 changed files with 270 additions and 190 deletions

26
deps/Blosc/Blosc.cmake vendored Normal file
View File

@ -0,0 +1,26 @@
if(BUILD_SHARED_LIBS)
set(_build_shared ON)
set(_build_static OFF)
else()
set(_build_shared OFF)
set(_build_static ON)
endif()
prusaslicer_add_cmake_project(Blosc
GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
DEPENDS ${ZLIB_PKG}
PATCH_COMMAND ${GIT_EXECUTABLE} reset --hard && ${GIT_EXECUTABLE} clean -df &&
${GIT_EXECUTABLE} apply --whitespace=nowarn ${CMAKE_CURRENT_LIST_DIR}/blosc-mods.patch
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_SHARED=${_build_shared}
-DBUILD_STATIC=${_build_static}
-DBUILD_TESTS=OFF
-DBUILD_BENCHMARKS=OFF
-DPREFER_EXTERNAL_ZLIB=ON
)
if (MSVC)
add_debug_dep(dep_Blosc)
endif ()

21
deps/CMakeLists.txt vendored
View File

@ -146,25 +146,30 @@ if (NOT EXPAT_FOUND)
set(EXPAT_PKG dep_EXPAT) set(EXPAT_PKG dep_EXPAT)
endif () endif ()
# The order of includes respects the dependencies between libraries
include(Cereal/Cereal.cmake) include(Cereal/Cereal.cmake)
include(Qhull/Qhull.cmake) include(Qhull/Qhull.cmake)
include(GLEW/GLEW.cmake) include(GLEW/GLEW.cmake)
include(OpenCSG/OpenCSG.cmake) include(OpenCSG/OpenCSG.cmake)
include(TBB/TBB.cmake)
include(Blosc/Blosc.cmake)
include(OpenEXR/OpenEXR.cmake)
include(OpenVDB/OpenVDB.cmake)
include(GMP/GMP.cmake) include(GMP/GMP.cmake)
include(MPFR/MPFR.cmake) include(MPFR/MPFR.cmake)
include(CGAL/CGAL.cmake) include(CGAL/CGAL.cmake)
include(NLopt/NLopt.cmake) include(NLopt/NLopt.cmake)
include(TBB/TBB.cmake)
include(OpenSSL/OpenSSL.cmake) include(OpenSSL/OpenSSL.cmake)
include(CURL/CURL.cmake) include(CURL/CURL.cmake)
include(wxWidgets/wxWidgets.cmake) include(wxWidgets/wxWidgets.cmake)
if (NOT "${ZLIB_PKG}" STREQUAL "") add_dependencies(dep_OpenVDB dep_boost)
add_dependencies(dep_blosc ${ZLIB_PKG})
add_dependencies(dep_openexr ${ZLIB_PKG})
endif ()
add_dependencies(dep_openvdb dep_TBB)
set(_dep_list set(_dep_list
dep_boost dep_boost
@ -173,7 +178,7 @@ set(_dep_list
dep_wxWidgets dep_wxWidgets
dep_Cereal dep_Cereal
dep_NLopt dep_NLopt
dep_openvdb dep_OpenVDB
dep_OpenCSG dep_OpenCSG
dep_CGAL dep_CGAL
${PNG_PKG} ${PNG_PKG}

15
deps/OpenEXR/OpenEXR.cmake vendored Normal file
View File

@ -0,0 +1,15 @@
prusaslicer_add_cmake_project(OpenEXR
GIT_REPOSITORY https://github.com/openexr/openexr.git
DEPENDS ${ZLIB_PKG}
GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_TESTING=OFF
-DPYILMBASE_ENABLE:BOOL=OFF
-DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
-DOPENEXR_BUILD_UTILS:BOOL=OFF
)
if (MSVC)
add_debug_dep(dep_OpenEXR)
endif ()

38
deps/OpenVDB/OpenVDB.cmake vendored Normal file
View File

@ -0,0 +1,38 @@
if(BUILD_SHARED_LIBS)
set(_build_shared ON)
set(_build_static OFF)
else()
set(_build_shared OFF)
set(_build_static ON)
endif()
prusaslicer_add_cmake_project(OpenVDB
GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
DEPENDS dep_TBB dep_Blosc dep_OpenEXR #dep_Boost
PATCH_COMMAND ${GIT_EXECUTABLE} reset --hard && ${GIT_EXECUTABLE} clean -df &&
${GIT_EXECUTABLE} apply --whitespace=nowarn ${CMAKE_CURRENT_LIST_DIR}/openvdb-mods.patch
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DOPENVDB_BUILD_PYTHON_MODULE=OFF
-DUSE_BLOSC=ON
-DOPENVDB_CORE_SHARED=${_build_shared}
-DOPENVDB_CORE_STATIC=${_build_static}
-DOPENVDB_ENABLE_RPATH:BOOL=OFF
-DTBB_STATIC=${_build_static}
-DOPENVDB_BUILD_VDB_PRINT=ON
-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON # Centos6 has old zlib
)
if (MSVC)
if (${DEP_DEBUG})
ExternalProject_Get_Property(dep_OpenVDB BINARY_DIR)
ExternalProject_Add_Step(dep_OpenVDB build_debug
DEPENDEES build
DEPENDERS install
COMMAND ${CMAKE_COMMAND} ../dep_OpenVDB -DOPENVDB_BUILD_VDB_PRINT=OFF
COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
WORKING_DIRECTORY "${BINARY_DIR}"
)
endif ()
endif ()

View File

@ -100,6 +100,3 @@ ExternalProject_Add(dep_boost
# BUILD_COMMAND make "-j${NPROC}" # BUILD_COMMAND make "-j${NPROC}"
# INSTALL_COMMAND make install "DESTDIR=${DESTDIR}" # INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
# ) # )
add_dependencies(dep_openvdb dep_boost)

92
deps/deps-macos.cmake vendored
View File

@ -42,50 +42,50 @@ ExternalProject_Add(dep_boost
INSTALL_COMMAND "" # b2 does that already INSTALL_COMMAND "" # b2 does that already
) )
ExternalProject_Add(dep_libcurl # ExternalProject_Add(dep_libcurl
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz" # URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115 # URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
BUILD_IN_SOURCE 1 # BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ./configure # CONFIGURE_COMMAND ./configure
--enable-static # --enable-static
--disable-shared # --disable-shared
"--with-ssl=${DESTDIR}/usr/local" # "--with-ssl=${DESTDIR}/usr/local"
--with-pic # --with-pic
--enable-ipv6 # --enable-ipv6
--enable-versioned-symbols # --enable-versioned-symbols
--enable-threaded-resolver # --enable-threaded-resolver
--with-darwinssl # --with-darwinssl
--without-ssl # disables OpenSSL # --without-ssl # disables OpenSSL
--disable-ldap # --disable-ldap
--disable-ldaps # --disable-ldaps
--disable-manual # --disable-manual
--disable-rtsp # --disable-rtsp
--disable-dict # --disable-dict
--disable-telnet # --disable-telnet
--disable-pop3 # --disable-pop3
--disable-imap # --disable-imap
--disable-smb # --disable-smb
--disable-smtp # --disable-smtp
--disable-gopher # --disable-gopher
--without-gssapi # --without-gssapi
--without-libpsl # --without-libpsl
--without-libidn2 # --without-libidn2
--without-gnutls # --without-gnutls
--without-polarssl # --without-polarssl
--without-mbedtls # --without-mbedtls
--without-cyassl # --without-cyassl
--without-nss # --without-nss
--without-axtls # --without-axtls
--without-brotli # --without-brotli
--without-libmetalink # --without-libmetalink
--without-libssh # --without-libssh
--without-libssh2 # --without-libssh2
--without-librtmp # --without-librtmp
--without-nghttp2 # --without-nghttp2
--without-zsh-functions-dir # --without-zsh-functions-dir
BUILD_COMMAND make "-j${NPROC}" # BUILD_COMMAND make "-j${NPROC}"
INSTALL_COMMAND make install "DESTDIR=${DESTDIR}" # INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
) # )
add_dependencies(dep_openvdb dep_boost)
# add_dependencies(dep_openvdb dep_boost)

View File

@ -40,57 +40,57 @@ endif ()
# ${DEP_CMAKE_OPTS} # ${DEP_CMAKE_OPTS}
# ) # )
ExternalProject_Add(dep_blosc # ExternalProject_Add(dep_blosc
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
GIT_REPOSITORY https://github.com/Blosc/c-blosc.git # GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0 # GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
DEPENDS # DEPENDS
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_DEBUG_POSTFIX=d # -DCMAKE_DEBUG_POSTFIX=d
-DBUILD_SHARED=OFF # -DBUILD_SHARED=OFF
-DBUILD_STATIC=ON # -DBUILD_STATIC=ON
-DBUILD_TESTS=OFF # -DBUILD_TESTS=OFF
-DBUILD_BENCHMARKS=OFF # -DBUILD_BENCHMARKS=OFF
-DPREFER_EXTERNAL_ZLIB=ON # -DPREFER_EXTERNAL_ZLIB=ON
PATCH_COMMAND ${GIT_EXECUTABLE} reset --hard && git clean -df && # PATCH_COMMAND ${GIT_EXECUTABLE} reset --hard && git clean -df &&
${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch # ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
) # )
ExternalProject_Add(dep_openexr # ExternalProject_Add(dep_openexr
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
GIT_REPOSITORY https://github.com/openexr/openexr.git # GIT_REPOSITORY https://github.com/openexr/openexr.git
GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0 # GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_TESTING=OFF # -DBUILD_TESTING=OFF
-DPYILMBASE_ENABLE:BOOL=OFF # -DPYILMBASE_ENABLE:BOOL=OFF
-DOPENEXR_VIEWERS_ENABLE:BOOL=OFF # -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
-DOPENEXR_BUILD_UTILS:BOOL=OFF # -DOPENEXR_BUILD_UTILS:BOOL=OFF
) # )
ExternalProject_Add(dep_openvdb # ExternalProject_Add(dep_openvdb
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git # GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1 # GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
DEPENDS dep_blosc dep_openexr # DEPENDS dep_blosc dep_openexr
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DCMAKE_DEBUG_POSTFIX=d # -DCMAKE_DEBUG_POSTFIX=d
-DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local # -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DOPENVDB_BUILD_PYTHON_MODULE=OFF # -DOPENVDB_BUILD_PYTHON_MODULE=OFF
-DUSE_BLOSC=ON # -DUSE_BLOSC=ON
-DOPENVDB_CORE_SHARED=OFF # -DOPENVDB_CORE_SHARED=OFF
-DOPENVDB_CORE_STATIC=ON # -DOPENVDB_CORE_STATIC=ON
-DTBB_STATIC=ON # -DTBB_STATIC=ON
-DOPENVDB_BUILD_VDB_PRINT=ON # -DOPENVDB_BUILD_VDB_PRINT=ON
-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON # -DDISABLE_DEPENDENCY_VERSION_CHECKS=ON
PATCH_COMMAND PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && # PATCH_COMMAND PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df &&
${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch # ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
) # )

View File

@ -156,89 +156,88 @@ endif ()
find_package(Git REQUIRED) find_package(Git REQUIRED)
ExternalProject_Add(dep_blosc # ExternalProject_Add(dep_blosc
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
#URL https://github.com/Blosc/c-blosc/archive/v1.17.0.zip # #URL https://github.com/Blosc/c-blosc/archive/v1.17.0.zip
#URL_HASH SHA256=7463a1df566704f212263312717ab2c36b45d45cba6cd0dccebf91b2cc4b4da9 # #URL_HASH SHA256=7463a1df566704f212263312717ab2c36b45d45cba6cd0dccebf91b2cc4b4da9
GIT_REPOSITORY https://github.com/Blosc/c-blosc.git # GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0 # GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
CMAKE_GENERATOR "${DEP_MSVC_GEN}" # CMAKE_GENERATOR "${DEP_MSVC_GEN}"
CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}" # CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_DEBUG_POSTFIX=d # -DCMAKE_DEBUG_POSTFIX=d
-DBUILD_SHARED=OFF # -DBUILD_SHARED=OFF
-DBUILD_STATIC=ON # -DBUILD_STATIC=ON
-DBUILD_TESTS=OFF # -DBUILD_TESTS=OFF
-DBUILD_BENCHMARKS=OFF # -DBUILD_BENCHMARKS=OFF
-DPREFER_EXTERNAL_ZLIB=ON # -DPREFER_EXTERNAL_ZLIB=ON
-DBLOSC_IS_SUBPROJECT:BOOL=ON # -DBLOSC_IS_SUBPROJECT:BOOL=ON
-DBLOSC_INSTALL:BOOL=ON # -DBLOSC_INSTALL:BOOL=ON
PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && # PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df &&
${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch # ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj # BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
INSTALL_COMMAND "" # INSTALL_COMMAND ""
) # )
add_debug_dep(dep_blosc) # add_debug_dep(dep_blosc)
ExternalProject_Add(dep_openexr # ExternalProject_Add(dep_openexr
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
GIT_REPOSITORY https://github.com/openexr/openexr.git # GIT_REPOSITORY https://github.com/openexr/openexr.git
GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0 # GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
CMAKE_GENERATOR "${DEP_MSVC_GEN}" # CMAKE_GENERATOR "${DEP_MSVC_GEN}"
CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}" # CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_TESTING=OFF # -DBUILD_TESTING=OFF
-DPYILMBASE_ENABLE:BOOL=OFF # -DPYILMBASE_ENABLE:BOOL=OFF
-DOPENEXR_VIEWERS_ENABLE:BOOL=OFF # -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
-DOPENEXR_BUILD_UTILS:BOOL=OFF # -DOPENEXR_BUILD_UTILS:BOOL=OFF
BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj # BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
INSTALL_COMMAND "" # INSTALL_COMMAND ""
) # )
add_debug_dep(dep_openexr) # add_debug_dep(dep_openexr)
ExternalProject_Add(dep_openvdb # ExternalProject_Add(dep_openvdb
EXCLUDE_FROM_ALL 1 # EXCLUDE_FROM_ALL 1
#URL https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.2.1.zip # #URL https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.2.1.zip
#URL_HASH SHA256=dc337399dce8e1c9f21f20e97b1ce7e4933cb0a63bb3b8b734d8fcc464aa0c48 # #URL_HASH SHA256=dc337399dce8e1c9f21f20e97b1ce7e4933cb0a63bb3b8b734d8fcc464aa0c48
GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git # GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1 # GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
DEPENDS dep_blosc dep_openexr dep_tbb dep_boost # DEPENDS dep_blosc dep_openexr dep_tbb dep_boost
CMAKE_GENERATOR "${DEP_MSVC_GEN}" # CMAKE_GENERATOR "${DEP_MSVC_GEN}"
CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}" # CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
CMAKE_ARGS # CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local # -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
-DCMAKE_DEBUG_POSTFIX=d # -DCMAKE_DEBUG_POSTFIX=d
-DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local # -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
-DBUILD_SHARED_LIBS=OFF # -DBUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON # -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DOPENVDB_BUILD_PYTHON_MODULE=OFF # -DOPENVDB_BUILD_PYTHON_MODULE=OFF
-DUSE_BLOSC=ON # -DUSE_BLOSC=ON
-DOPENVDB_CORE_SHARED=OFF # -DOPENVDB_CORE_SHARED=OFF
-DOPENVDB_CORE_STATIC=ON # -DOPENVDB_CORE_STATIC=ON
-DTBB_STATIC=ON # -DTBB_STATIC=ON
-DOPENVDB_BUILD_VDB_PRINT=ON # -DOPENVDB_BUILD_VDB_PRINT=ON
BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj # BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && # PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df &&
${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch # ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
INSTALL_COMMAND "" # INSTALL_COMMAND ""
) # )
if (${DEP_DEBUG})
ExternalProject_Get_Property(dep_openvdb BINARY_DIR)
ExternalProject_Add_Step(dep_openvdb build_debug
DEPENDEES build
DEPENDERS install
COMMAND ${CMAKE_COMMAND} ../dep_openvdb -DOPENVDB_BUILD_VDB_PRINT=OFF
COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
WORKING_DIRECTORY "${BINARY_DIR}"
)
endif ()
# if (${DEP_DEBUG})
# ExternalProject_Get_Property(dep_openvdb BINARY_DIR)
# ExternalProject_Add_Step(dep_openvdb build_debug
# DEPENDEES build
# DEPENDERS install
# COMMAND ${CMAKE_COMMAND} ../dep_openvdb -DOPENVDB_BUILD_VDB_PRINT=OFF
# COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
# WORKING_DIRECTORY "${BINARY_DIR}"
# )
# endif ()