cgal icon indicating copy to clipboard operation
cgal copied to clipboard

Fix how to set BOOST_ROOT

Open afabri opened this issue 8 months ago • 7 comments

Summary of Changes

We require at least 1.74, but we gave an example with 1.70 We did not give the path to the boost cmake config file.

Release Management

  • Affected package(s): documentation

afabri avatar May 15 '25 09:05 afabri

Is it ok that I changed "\" to "/" ?

afabri avatar May 15 '25 09:05 afabri

@lrineau I'm not sure about the fix. Boost_DIR shall point to where BoostConfig.cmake is located but BOOST_ROOT should point to the root of the installation, isn't it?

sloriot avatar Jun 04 '25 11:06 sloriot

The doc of FindBoost says "BOOSTROOT : preferred installation prefix" On my installation, it is set to where BoostConfig.cmake is, and it works

janetournois avatar Jun 04 '25 12:06 janetournois

The doc of FindBoost says "BOOSTROOT : preferred installation prefix" On my installation, it is set to where BoostConfig.cmake is, and it works

But also with the underscore on the page you gave.

afabri avatar Jun 04 '25 12:06 afabri

That's my point: BOOT_ROOT installation prefix while config mode should be using Boost_DIR.

sloriot avatar Jun 04 '25 12:06 sloriot

ping @lrineau

sloriot avatar Jun 10 '25 12:06 sloriot

Actually, if Boost is installed in a standard directory, like C:/ProgramFiles(x86), it can be found automatically. See the documentation of CMAKE_SYSTEM_PREFIX_PATH.

lrineau avatar Jun 10 '25 15:06 lrineau

Successfully tested in CGAL-6.1-Ic-184

sloriot avatar Jun 26 '25 19:06 sloriot