Using OpenMP 2.0 and LTO with MSVC
amyspark opened this issue · 1 comments
amyspark commented
Hey @c-koi,
I've successfully built G'MIC with OpenMP 2.0 and LTO under the following Windows compilers: MSVC, MSYS Clang 14.0.3, and MSYS GCC 12.1.
This is made possible by the following modules:
- CheckIPOSupported, available in CMake 3.9 onwards
- FindOpenMP. I use in particular the cross-compiler support and the language detection, which make CMake 3.10 a requirement.
We at Krita use CMake 3.16, but the project here uses 3.6. Would such an upgrade be OK with you? I already addressed the CImg compatibility with GreycLab/CImg#353.
c-koi commented
A PR is welcome. Thanks.