diff options
author | Lukas Rusak <lorusak@gmail.com> | 2020-09-11 13:48:08 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2020-09-18 07:26:42 -0700 |
commit | c64f726fe46f46176cf75652d013705b04b4f2c1 (patch) | |
tree | 96431c7e697db9c7b1ccc8b6648d2295a599a3f7 /cmake/modules/FindLCMS2.cmake | |
parent | dec2207756ce29cafb1900468ed460f455823766 (diff) |
[cmake] require lcms2 >= 2.10 for c++17 support
Diffstat (limited to 'cmake/modules/FindLCMS2.cmake')
-rw-r--r-- | cmake/modules/FindLCMS2.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/FindLCMS2.cmake b/cmake/modules/FindLCMS2.cmake index 7cc1497333..d02515815d 100644 --- a/cmake/modules/FindLCMS2.cmake +++ b/cmake/modules/FindLCMS2.cmake @@ -15,7 +15,7 @@ # LCMS2::LCMS2 - The LCMS Color Management library if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_LCMS2 lcms2 QUIET) + pkg_check_modules(PC_LCMS2 lcms2>=2.10 QUIET) endif() find_path(LCMS2_INCLUDE_DIR NAMES lcms2.h @@ -33,7 +33,7 @@ find_package_handle_standard_args(LCMS2 if(LCMS2_FOUND) set(LCMS2_LIBRARIES ${LCMS2_LIBRARY}) set(LCMS2_INCLUDE_DIRS ${LCMS2_INCLUDE_DIR}) - set(LCMS2_DEFINITIONS -DHAVE_LCMS2=1) + set(LCMS2_DEFINITIONS -DHAVE_LCMS2=1 -DCMS_NO_REGISTER_KEYWORD=1) if(NOT TARGET LCMS2::LCMS2) add_library(LCMS2::LCMS2 UNKNOWN IMPORTED) |