mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-15 22:34:58 +00:00
Fix the CMake-based check for posix_memalign
This commit is contained in:
parent
2288fa969a
commit
f180139968
@ -73,8 +73,8 @@ endif()
|
|||||||
# _XOPEN_SOURCE or _POSIX_C_SOURCE; they leave this to the user.
|
# _XOPEN_SOURCE or _POSIX_C_SOURCE; they leave this to the user.
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
include(CheckSymbolExists)
|
||||||
CHECK_FUNCTION_EXISTS(posix_memalign HAVE_POSIX_MEMALIGN)
|
CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
|
||||||
|
|
||||||
if(HAVE_POSIX_MEMALIGN)
|
if(HAVE_POSIX_MEMALIGN)
|
||||||
add_definitions(-DHAVE_POSIX_MEMALIGN)
|
add_definitions(-DHAVE_POSIX_MEMALIGN)
|
||||||
|
Loading…
Reference in New Issue
Block a user