From: Eldar Yusupov Date: Tue, 22 Oct 2019 17:25:35 +0000 (+0300) Subject: Include CheckSymbolExists CMake module X-Git-Tag: v3.5.0~27^2~2^2~5 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/af833ff042339ad6da3d5da0a0343f150b4c1998 Include CheckSymbolExists CMake module --- diff --git a/nominatim/CMakeLists.txt b/nominatim/CMakeLists.txt index b391a342..d862b2b3 100644 --- a/nominatim/CMakeLists.txt +++ b/nominatim/CMakeLists.txt @@ -1,4 +1,5 @@ add_executable(nominatim export.c geometry.cpp import.c index.c input.c nominatim.c postgresql.c sprompt.c) +include(CheckSymbolExists) CHECK_SYMBOL_EXISTS(bswap_32 "byteswap.h" HAVE_BYTESWAP) CHECK_SYMBOL_EXISTS(bswap32 "sys/endian.h" HAVE_SYS_ENDIAN)