diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-04-17 15:55:17 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-04-17 15:55:17 +0200 |
commit | 787987ef863961cbf8017f86771a2438f6500ad5 (patch) | |
tree | 6e9a301be9588c511b7e6ae3c131ccd2ecd31198 /cmake/Modules/FindPixman.cmake | |
parent | 640c5503c1b74d518a34bbce0fb7392876e8fb6d (diff) | |
download | tigervnc-787987ef863961cbf8017f86771a2438f6500ad5.tar.gz tigervnc-787987ef863961cbf8017f86771a2438f6500ad5.zip |
Handle REQUIRED in our CMake "find" modules
These are expected to abort if they fail to find the relevant software
and "REQUIRED" is specified.
Diffstat (limited to 'cmake/Modules/FindPixman.cmake')
-rw-r--r-- | cmake/Modules/FindPixman.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/FindPixman.cmake b/cmake/Modules/FindPixman.cmake index 04fe481f..f024b71a 100644 --- a/cmake/Modules/FindPixman.cmake +++ b/cmake/Modules/FindPixman.cmake @@ -7,3 +7,7 @@ else() find_library(PIXMAN_LIBRARIES NAMES pixman-1) find_package_handle_standard_args(PIXMAN DEFAULT_MSG PIXMAN_LIBRARIES PIXMAN_INCLUDE_DIRS) endif() + +if(Pixman_FIND_REQUIRED AND NOT PIXMAN_FOUND) + message(FATAL_ERROR "Could not find Pixman") +endif() |