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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-11-11 19:55:07 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-11-11 20:22:51 +0300
commitba2072524bbf06068bec5c12e185a222b4d57f76 (patch)
treeb2c9e8f48bb4588789b04ed6b0426f64bc829804
parent8799ab201d332ff2fe1a52815b595152639fdcb7 (diff)
Fix CMake error when pkg-config is not installed
Don't assume xxx_FOUND variables are defined.
-rw-r--r--build_files/cmake/macros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index 73883376060..824c587c86e 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -1240,7 +1240,7 @@ endmacro()
macro(set_and_warn_library_found
_library_name _library_found _setting)
- if(NOT ${${_library_found}} AND ${${_setting}})
+ if(((NOT ${_library_found}) OR (NOT ${${_library_found}})) AND ${${_setting}})
if(WITH_STRICT_BUILD_OPTIONS)
message(SEND_ERROR "${_library_name} required but not found")
else()