shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
637 stars 129 forks source link

Issues with older CMake (3.11) after last commit #417

Closed zachmatson closed 3 years ago

zachmatson commented 3 years ago

In CMake 3.11, I was previously able to build SLEEF. After the latest commit (eb3d977) I get the error

CMake Error at src/libm/CMakeLists.txt:1066 (install):
    install TARGETS given no ARCHIVE DESTINATION for static library target
    "sleef".
shibatch commented 3 years ago

Please check if this patch solves your problem.

https://github.com/shibatch/sleef/tree/fix-static-with-old-cmake

zachmatson commented 3 years ago

That fixes it for me

friendlyanon commented 3 years ago

ARCHIVE is already provided: https://github.com/shibatch/sleef/blob/eb3d97785cb4f6f6f4c0ffd6570ca6c73ccac2ec/src/libm/CMakeLists.txt#L1057-L1059

Please describe your build environment, because this is not an issue with CMake nor the changes. See these CMake 3.8 CI runs with the same install commands.