Can you explain what's going on here? You don't seem to use OpenMP in the code you added. Presumably, it's used within LibRaw, and I can see how its presence on the system would influence whether you link against the OMP-enabled version of LibRaw or not, but what's the effect of altering the CMAKE_CXX_FLAGS? Why do we need different C++ compiler flags when compiling OIIO?