aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindLCMS.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindLCMS.cmake b/modules/FindLCMS.cmake
index 1abfd297..97ac7ef1 100644
--- a/modules/FindLCMS.cmake
+++ b/modules/FindLCMS.cmake
@@ -9,9 +9,9 @@
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
if(NOT WIN32)
-INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(LCMS lcms)
-SET(LCMS_DEFINITIONS ${LCMS_CFLAGS})
+find_package(PkgConfig)
+pkg_check_modules(LCMS lcms)
+set(LCMS_DEFINITIONS ${LCMS_CFLAGS})
endif(NOT WIN32)
find_path(LCMS_INCLUDE_DIR lcms.h