summaryrefslogtreecommitdiffstats
path: root/ksvg/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ksvg/ConfigureChecks.cmake')
-rw-r--r--ksvg/ConfigureChecks.cmake21
1 files changed, 13 insertions, 8 deletions
diff --git a/ksvg/ConfigureChecks.cmake b/ksvg/ConfigureChecks.cmake
index 72a9a6b2..e3c3893a 100644
--- a/ksvg/ConfigureChecks.cmake
+++ b/ksvg/ConfigureChecks.cmake
@@ -10,16 +10,21 @@
#################################################
# lcms
-check_include_file( lcms.h HAVE_LCMS_H )
-if( HAVE_LCMS_H )
- set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
-endif( )
+check_include_file( lcms2.h HAVE_LCMS2_H )
+if( HAVE_LCMS2_H )
+ set( LCMS_HEADER "lcms2.h" CACHE INTERNAL "" FORCE )
+ set( LCMS_LIBRARY lcms2 )
+else( HAVE_LCMS2_H )
+ check_include_file( lcms.h HAVE_LCMS_H )
+ if( HAVE_LCMS_H )
+ set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
+ set( LCMS_LIBRARY lcms )
+ endif( HAVE_LCMS_H )
+endif( HAVE_LCMS2_H )
if( LCMS_HEADER )
- check_library_exists( lcms VEC3init "" HAVE_LCMS )
+ check_library_exists( ${LCMS_LIBRARY} cmsOpenProfileFromFile "" HAVE_LCMS )
endif( )
-if( HAVE_LCMS )
- set( LCMS_LIBRARY lcms )
-else( )
+if( NOT HAVE_LCMS )
tde_message_fatal( "lcms is required, but was not found on your system" )
endif( )