explicitly set Boost_DIR in DependencyInstaller #9369
Merged
+17
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a build failure where CMake could not locate the system-installed Boost configuration (
BoostConfig.cmake), even though Boost 1.89.0 was successfully installed.Changes
-save-deps-prefixes=/etc/openroad_deps_prefixes.txtparameter when callingDependencyInstaller.shin Dockerfile fordevtarget. Then for thebuildertarget we check if the file/etc/openroad_deps_prefixes.txtexists and use it for the cmake build command.etc/DependencyInstaller.shto explicitly setBoost_DIRin the generatedopenroad_deps_prefixes.txt.lib/cmake/Boost-*andlib64/cmake/Boost-*) and passes this path to CMake.Reason
Boost_ROOTis insufficient forfind_package(Boost CONFIG)to locate the configuration files. Explicitly settingBoost_DIRensures CMake can find the installed Boost package.