-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Is the boost dependency check in CMakeLists.txt correct? #3197
Comments
Note that |
That boost check looks a bit weird. @thehans Looks like smth. you added to work around MSVC issues and possibly some CGAL issues. Perhaps that can be cleaned up now that CGAL is header-only? |
I agree it does look weird, but as far as I remember, I don't think I originally added that check, just carried it forward through various large changes. Its not specific to MSVC; it does the same check in both the Perhaps a more clear representation of the logic would be Here is an example of what I see when I print out Directly required:
Boost Libraries:
Also you might be able to see some extra info by removing the |
Thanks, I have somehow not realized this. Anyways, I'll try to investigate if libboost_chrono.so, libboost_date_time.so and libboost_atomic.so are truly necessary and truly missing ( |
If you have suggestions how to improve/modernize the Sounds like a nice first use case for the github CI :-). I'll try to find some time to get that setup. |
Upstream issue: openscad/openscad#3197
I recently noticed that boost thread doesn't appear to be used as far as I can tell. If we truly don't need that on any platform anymore (there is |
Thanks, agreed. |
Upstream issue: openscad/openscad#3197
Hi, I am trying to build openscad but run into an error during configuring:
This comes from line 205 of the CMakeLists.txt, where we check, I think, if the number of required boost libraries equals the number of boost libraries that we have. (The same check is also done on line 148 for MSVC)
It checks
if(Boost_LIBRARIES_LENGTH EQUAL BOOST_DIRECTLY_REQUIRED_LIBRARIES_LENGTH)
, which in my case expands to5 EQUALS 5
.Shouldn't this rather be
if(NOT Boost_LIBRARIES_LENGTH EQUAL BOOST_DIRECTLY_REQUIRED_LIBRARIES_LENGTH)
?The arrays, BOOST_DIRECTLY_REQUIRED_LIBRARIES and Boost_LIBRARIES, checked expand to
filesystem;system;thread;regex;program_options
andBoost::filesystem;Boost::system;Boost::thread;Boost::regex;Boost::program_options
, so it looks like all dependencies are there, if I comment this check away openscad seems to build fine.Maybe I am misunderstanding the intent behind the check..
The text was updated successfully, but these errors were encountered: