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 at CMakeLists.txt:125 (install) #28

Closed Megidd closed 3 years ago

Megidd commented 3 years ago

When using such command:

cmake .. -DLIBNEST2D_HEADER_ONLY=OFF -DCMAKE_INSTALL_PREFIX=./installdir -DRP_ENABLE_DOWNLOADING=ON

This error is thrown:

CMake Error at CMakeLists.txt:125 (install): install TARGETS given no ARCHIVE DESTINATION for static library target "libnest2d_clipper_nlopt".

This PR fixes the error, as far as tested.

Megidd commented 3 years ago

Also, when running this command:

cmake .. -DLIBNEST2D_HEADER_ONLY=OFF -DCMAKE_INSTALL_PREFIX=./installdir -DRP_ENABLE_DOWNLOADING=ON -DBUILD_SHARED_LIBS=ON

This error is thrown:

CMake Error at CMakeLists.txt:125 (install): install TARGETS given no LIBRARY DESTINATION for shared library target "libnest2d_clipper_nlopt".

Which is fixed by this PR, as far as tested.