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.
Describe the bug
For some reason (at least on my machine)
libomp.libneeds to be explicitly linked in CMake, despite usingOpenMP::OpenMP_CXXand I have no idea why.To Reproduce
Steps to reproduce the behaviour:
libomp.libExpected behaviour
We should not need to link
libomp.libmanually.