rovka added a comment. I'm not familiar enough with the CMake infrastructure to know if this does the trick for the openmp tests, but as I said on the bug report, I'm ok with this general direction. Repository: rOMP OpenMP https://reviews.llvm.org/D43195