[hamradio-commits] [gnss-sdr] 01/16: Fix the CMake-based check for posix_memalign
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Mon Jul 4 17:33:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit f180139968fa5de1d3ef1876aa1ab1bdf926c153
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Sat Jul 2 12:00:30 2016 +0200
Fix the CMake-based check for posix_memalign
---
.../libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt
index 90b0a53..d512c3d 100644
--- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt
+++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/lib/CMakeLists.txt
@@ -73,9 +73,9 @@ endif()
# _XOPEN_SOURCE or _POSIX_C_SOURCE; they leave this to the user.
########################################################################
-include(CheckFunctionExists)
-CHECK_FUNCTION_EXISTS(posix_memalign HAVE_POSIX_MEMALIGN)
-
+include(CheckSymbolExists)
+CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
+
if(HAVE_POSIX_MEMALIGN)
add_definitions(-DHAVE_POSIX_MEMALIGN)
endif(HAVE_POSIX_MEMALIGN)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list