Use ${OpenMP_CXX_FLAGS} isntead of explicit -fopenmp.