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)
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()
34 34
35#check for symbols in pthread 35#check for symbols in pthread
36#TODO Make the definitions depending on the platform 36#TODO Make the definitions depending on the platform
37SET_GLOBAL(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}") 37set(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
38SET_GLOBAL(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE=1") 38set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE=1")
39CHECK_SYMBOL_EXISTS(pthread_barrier_init pthread.h EINA_HAVE_PTHREAD_BARRIER) 39CHECK_SYMBOL_EXISTS(pthread_barrier_init pthread.h EINA_HAVE_PTHREAD_BARRIER)
40CHECK_SYMBOL_EXISTS(pthread_attr_setaffinity_np pthread.h EINA_HAVE_PTHREAD_AFFINITY) 40CHECK_SYMBOL_EXISTS(pthread_attr_setaffinity_np pthread.h EINA_HAVE_PTHREAD_AFFINITY)
41CHECK_SYMBOL_EXISTS(pthread_setname_np pthread.h EINA_HAVE_PTHREAD_SETNAME) 41CHECK_SYMBOL_EXISTS(pthread_setname_np pthread.h EINA_HAVE_PTHREAD_SETNAME)