From 97f7df5dee4c09f23744c122d2acd691b4927214 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 19 Aug 2013 20:05:14 -0700 Subject: cmake: Prefix 'check_thread_local_storage()' with 'waffle' Let's be good code citizens and properly namespace our functions. Signed-off-by: Chad Versace --- CMakeLists.txt | 2 +- cmake/Modules/CheckThreadLocalStorage.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2714b83..75a261c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,7 @@ endif() # Set the following: # waffle_has_tls # waffle_tls_model_initial_exec -check_thread_local_storage() +waffle_check_thread_local_storage() if(waffle_has_wayland OR waffle_has_x11_egl OR waffle_has_gbm) set(waffle_has_egl TRUE) diff --git a/cmake/Modules/CheckThreadLocalStorage.cmake b/cmake/Modules/CheckThreadLocalStorage.cmake index ad8cd85..9febb3d 100644 --- a/cmake/Modules/CheckThreadLocalStorage.cmake +++ b/cmake/Modules/CheckThreadLocalStorage.cmake @@ -29,7 +29,7 @@ # # Usage: # include(CheckThreadLocalStorage) -# check_thread_local_storage() +# waffle_check_thread_local_storage() # # Output Variables: # waffle_has_tls @@ -42,7 +42,7 @@ include(CheckCSourceCompiles) -macro(check_thread_local_storage) +macro(waffle_check_thread_local_storage) # Clang, in its zeal for compatibility with gcc, emits only a warning if # it encounters an __attribute__ that it does not recognize. To prevent # this function from returning a false positive in that situation, force -- cgit v1.2.3