aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2014-02-12 08:44:29 +0200
committerPetri Lehtinen <petri@digip.org>2014-02-12 08:44:29 +0200
commit569295fe3026f1deecfd6cc2e851054e6c9f9469 (patch)
tree14687d8560a0ac3342b69015c58262890b05621f /CMakeLists.txt
parent3f5acaa3fb0ddcf093b353e40d51056bf5aea306 (diff)
downloadjansson-569295fe3026f1deecfd6cc2e851054e6c9f9469.zip
jansson-569295fe3026f1deecfd6cc2e851054e6c9f9469.tar.gz
jansson-569295fe3026f1deecfd6cc2e851054e6c9f9469.tar.bz2
Fix feature checks to use correct __ATOMIC flags
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 979fb63..5bfd5e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -265,7 +265,7 @@ elseif (HAVE__SNPRINTF)
endif ()
check_c_source_compiles ("int main() { unsigned long val; __sync_bool_compare_and_swap(&val, 0, 1); return 0; } " HAVE_SYNC_BUILTINS)
-check_c_source_compiles ("int main() { char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_ACQ_REL); __atomic_load_n(&v, __ATOMIC_ACQUIRE); return 0; }" HAVE_ATOMIC_BUILTINS)
+check_c_source_compiles ("int main() { char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_RELEASE); __atomic_load_n(&v, __ATOMIC_ACQUIRE); return 0; }" HAVE_ATOMIC_BUILTINS)
# Create pkg-conf file.
# (We use the same files as ./configure does, so we