tamasmeszaros / libnest2d

2D irregular bin packaging and nesting library written in modern C++
GNU Lesser General Public License v3.0
315 stars 104 forks source link

Fix CMake error #45

Open Megidd opened 2 years ago

Megidd commented 2 years ago

Trying to fix a CMake error:

Could NOT find Boost (missing: headers)

Reference: https://stackoverflow.com/q/62782361

2022-02-16 04_39_51-Window

Megidd commented 2 years ago

Test

Test shows that after this PR, these statements are fine without any error:

mkdir build
cd build
cmake .. -DLIBNEST2D_HEADER_ONLY=OFF -DCMAKE_INSTALL_PREFIX=./installdir -DCMAKE_TOOLCHAIN_FILE=C:\Users\m3\repos\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake --build . --target install
cmake --build . --target install --config Release