[bug] Manual linking of libomp.lib required
Opened this issue · 0 comments
Derpius commented
Describe the bug
For some reason (at least on my machine) libomp.lib
needs to be explicitly linked in CMake, despite using OpenMP::OpenMP_CXX
and I have no idea why.
To Reproduce
Steps to reproduce the behaviour:
- Clone repo, set up, and compile to windows (any architecture)
- Remove the line that adds
libomp.lib
- Recompile
- Undefined reference errors to all OpenMP functions
Expected behaviour
We should not need to link libomp.lib
manually.