-
Notifications
You must be signed in to change notification settings - Fork 137
stop building assimp #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop building assimp #123
Conversation
Never tried If what we need is faster build time, I think there are several things that we can do to speed up compilation without removing assimp entirely:
|
Hmm, in the same way we've been talking about separating If someone does want |
I'm fine with separating it from our tests. |
Okay @pca006132, I'm going to leave this for now and focus on fixing the bugs you've reported. If you happen to get interested in this PR, you're welcome to take it over. Not a huge priority, but I think separating |
Maybe you can try this patch and see if it improves your build time? diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f32750..70f2138 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,17 @@ if(NOT THRUST_BACKEND STREQUAL "CUDA" AND NOT THRUST_BACKEND STREQUAL "OMP" AND
message(FATAL_ERROR "Invalid value for THRUST_BACKEND: ${THRUST_BACKEND}. Should be one of \"CUDA\", \"OMP\" or \"CPP\"")
endif()
+option(ASSIMP_FAST_BUILD "build ASSIMP just for tests" ON)
+if(ASSIMP_FAST_BUILD)
+ option(ASSIMP_INSTALL FALSE)
+ option(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT FALSE)
+ option(ASSIMP_BUILD_ALL_EXPORTERS_BY_DEFAULT FALSE)
+ foreach(FMT OBJ;PLY;STL;GLTF)
+ set(ASSIMP_BUILD_${FMT}_IMPORTER TRUE)
+ set(ASSIMP_BUILD_${FMT}_EXPORTER TRUE)
+ endforeach()
+endif() Just disabled most of the importers and exporters. The build is significantly faster on my computer. |
I am not that hot on vcpkg :/ I think disabling is fine as long the unit tests run. |
This has been superseded by trimming down the number of Assimp importer/exporters to build. That's much simpler for now. |
@pca006132 I see why you went this route, but I'm impatient when it comes to building, plus the patch makes building a bit complicated. I don't love having to wait to rebuild assimp every time I make a random change to CMakeLists. The only trick is I'm not sure the best way to install it for Windows. I'm wondering if we should switch to
vcpkg
for our dependencies so we have a consistent system between Linux and Windows. Assimp recommends it. What do you think?