cmake test for thread_local