diff options
| author | manuel <manuel@mausz.at> | 2020-10-19 00:52:24 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2020-10-19 00:52:24 +0200 |
| commit | be933ef2241d79558f91796cc5b3a161f72ebf9c (patch) | |
| tree | fe3ab2f130e20c99001f2d7a81d610c78c96a3f4 /cmake/scripts/common/ArchSetup.cmake | |
| parent | 5f8335c1e49ce108ef3481863833c98efa00411b (diff) | |
| download | kodi-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.cmake | 17 |
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) |
| 109 | endif() | 109 | endif() |
| 110 | 110 | ||
| 111 | set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE") | ||
| 112 | check_symbol_exists("STATX_BTIME" "linux/stat.h" HAVE_STATX) | ||
| 113 | if(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() | ||
| 121 | else() | ||
| 122 | message(STATUS "statx() not found") | ||
| 123 | endif() | ||
| 124 | set(CMAKE_REQUIRED_DEFINITIONS "") | ||
| 125 | |||
| 111 | find_package(SSE) | 126 | find_package(SSE) |
| 112 | foreach(_sse SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2) | 127 | foreach(_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") |
| 145 | endif() | 160 | endif() |
| 146 | 161 | ||
| 162 | # set for compile info to help detect binary addons | ||
| 163 | set(APP_SHARED_LIBRARY_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}") | ||
