From f197b1a1f1bbc0334310fb1c911327246767a1a3 Mon Sep 17 00:00:00 2001 From: listout Date: Thu, 18 Aug 2022 08:04:56 +1000 Subject: CMake: support building with musl libc Instead of using macros like GLIBC we can use the CMake build systems internal functions to check if some header or functions are present on the running system's libc. Add ./build_files/cmake/have_features.cmake to add checks for platform features which can be used to set defines for source files that require them. Reviewed By: campbellbarton Ref D15696 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f59a849cbf8..9f4c5e80b17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,12 @@ blender_project_hack_post() enable_testing() +#----------------------------------------------------------------------------- +# Test compiler/library features. + +include(build_files/cmake/have_features.cmake) + + #----------------------------------------------------------------------------- # Redirect output files -- cgit v1.2.3