summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/ArchSetup.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
committermanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
commitbe933ef2241d79558f91796cc5b3a161f72ebf9c (patch)
treefe3ab2f130e20c99001f2d7a81d610c78c96a3f4 /cmake/scripts/common/ArchSetup.cmake
parent5f8335c1e49ce108ef3481863833c98efa00411b (diff)
downloadkodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.gz
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.bz2
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.zip
sync with upstream
Diffstat (limited to 'cmake/scripts/common/ArchSetup.cmake')
-rw-r--r--cmake/scripts/common/ArchSetup.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake
index 2e1eb12..978a7fa 100644
--- a/cmake/scripts/common/ArchSetup.cmake
+++ b/cmake/scripts/common/ArchSetup.cmake
@@ -108,6 +108,21 @@ if(HAVE_INTTYPES_H)
108 list(APPEND SYSTEM_DEFINES -DHAVE_INTTYPES_H=1) 108 list(APPEND SYSTEM_DEFINES -DHAVE_INTTYPES_H=1)
109endif() 109endif()
110 110
111set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
112check_symbol_exists("STATX_BTIME" "linux/stat.h" HAVE_STATX)
113if(HAVE_STATX)
114 check_function_exists("statx" FOUND_STATX_FUNCTION)
115 if(FOUND_STATX_FUNCTION)
116 message(STATUS "statx is available")
117 list(APPEND ARCH_DEFINES "-DHAVE_STATX=1")
118 else()
119 message(STATUS "statx flags found but no linkable function : C library too old ?")
120 endif()
121else()
122 message(STATUS "statx() not found")
123endif()
124set(CMAKE_REQUIRED_DEFINITIONS "")
125
111find_package(SSE) 126find_package(SSE)
112foreach(_sse SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2) 127foreach(_sse SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2)
113 if(${${_sse}_FOUND}) 128 if(${${_sse}_FOUND})
@@ -144,3 +159,5 @@ if(NOT MSVC)
144 add_options(ALL_LANGUAGES DEBUG "-g" "-D_DEBUG") 159 add_options(ALL_LANGUAGES DEBUG "-g" "-D_DEBUG")
145endif() 160endif()
146 161
162# set for compile info to help detect binary addons
163set(APP_SHARED_LIBRARY_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}")