summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-21 19:27:44 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-23 18:23:40 +0100
commit23dddf8e1ce0d0ff14f15e2be0da8c9893f5e360 (patch)
tree6d1444be462425b8eaf63d5ebedc95e04ea9c755
parent5c548d4c632dc6501050964892aebe42d697864b (diff)
downloadefl-23dddf8e1ce0d0ff14f15e2be0da8c9893f5e360.tar.gz
build: define symbol exist variables for local scope
otherwise CHECK_SYMBOL_EXISTS doesnt work as expected.
-rw-r--r--cmake/config/eina.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/config/eina.cmake b/cmake/config/eina.cmake
index a91d76dc3e..6865f3b210 100644
--- a/cmake/config/eina.cmake
+++ b/cmake/config/eina.cmake
@@ -34,8 +34,8 @@ endif()
#check for symbols in pthread
#TODO Make the definitions depending on the platform
-SET_GLOBAL(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
-SET_GLOBAL(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE=1")
+set(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
+set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE=1")
CHECK_SYMBOL_EXISTS(pthread_barrier_init pthread.h EINA_HAVE_PTHREAD_BARRIER)
CHECK_SYMBOL_EXISTS(pthread_attr_setaffinity_np pthread.h EINA_HAVE_PTHREAD_AFFINITY)
CHECK_SYMBOL_EXISTS(pthread_setname_np pthread.h EINA_HAVE_PTHREAD_SETNAME)