diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-11-11 19:55:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-11-11 20:22:51 +0300 |
commit | ba2072524bbf06068bec5c12e185a222b4d57f76 (patch) | |
tree | b2c9e8f48bb4588789b04ed6b0426f64bc829804 | |
parent | 8799ab201d332ff2fe1a52815b595152639fdcb7 (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.cmake | 2 |
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() |