Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-18 02:58:17 +0300
committerCampbell Barton <campbell@blender.org>2022-08-18 03:01:27 +0300
commit2a2ca3292a93c224647c84916c09337ece661b5b (patch)
tree46ee4e26b2f34ecf1ed72fdcc3c18c8f20fc6541 /intern
parentcfe5bf4b2222f7cd1b41e7ee7f6fa84e807aaeb0 (diff)
CMake: always unset CMAKE_REQUIRED_* variables after use
Always unset these variables after use as they could interfere with other checks made afterwards.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index 099785bafa8..d59c179e371 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -288,6 +288,7 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND)
include(CheckSymbolExists)
set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
check_symbol_exists(memfd_create "sys/mman.h" HAVE_MEMFD_CREATE)
+ unset(CMAKE_REQUIRED_DEFINITIONS)
if(HAVE_MEMFD_CREATE)
add_definitions(-DHAVE_MEMFD_CREATE)
endif()