#unset this if you want to use the current TEB instead of TLS set(OPENGL32_USE_TLS TRUE) add_subdirectory(glu32) add_subdirectory(mesa) add_subdirectory(opengl32)