-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add_boost script rerunning boost compilation each time #142
Comments
Hi @DominicDirkx, thanks for opening the issue. I have looked into this just now and previously in the past when writing The FindBoost.cmake module return the variable
and put By building boost locally and specifying On a different note, as ./tudatExampleApplications/libraryExamples/SpiceAndJSON/CMakeModules/FindBoost.cmake
./tudatExampleApplications/libraryExamples/PaGMOEx/CMakeModules/FindBoost.cmake
./tudatExampleApplications/templateApplication/TemplateApplication/CMakeModules/FindBoost.cmake
./tudatExampleApplications/satellitePropagatorExamples/SatellitePropagatorExamples/CMakeModules/FindBoost.cmake
./tudatApplications/myApplication/myApplication/TemplateApplication/CMakeModules/FindBoost.cmake
./tudat/Tudat/External/CMake/FindBoost.cmake The only possible solution I currently see is: to do a |
Okay so after writing my previous post, the idea of how to solve this was defined more clearly for me. I have therefore implemented a fix and created a pull request. The code tries to per component use find_package and checks (1) whether is it found and (2) whether the location matches the local boost library directory. If checks (1) and (2) pass for all components in The only downside is that it throws some warnings if it fails checks (1) or (2) which I wasn't able to suppress. A message has been added to inform users that these warnings can be ignored. Unrelated fix: a message was inserted at the extraction step, warning Windows users that extraction might take very long. @DominicDirkx can you review the pull request? |
Merged |
We have noticed that on many machines, the add_boost script is running through its entirety every time. In particular, you may see the ./b2 .... step every time you make modifications, which can take a long time and is not necessary.
Although this is an issue that should be resolved, this will likely take some time. The 'quick and dirty' fix is to comment out, using the # symbol, line 57, containing:
include(add_boost)
in the top-level CMakeLists.txt file.
The text was updated successfully, but these errors were encountered: