From e102a776ad9144922d8c9b708f334b17d350f083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 5 Dec 2015 19:57:41 +0100 Subject: [PATCH] modules: use HINTS instead of PATHS for find_path(). Because the value is not hardcoded but rather depending on previous introspection and CMake documentation suggests using different keyword for this. --- modules/FindMagnum.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index 23bb9bad8..c3db765d6 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -518,7 +518,7 @@ foreach(component ${Magnum_FIND_COMPONENTS}) if(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES) find_path(_MAGNUM_${_COMPONENT}_INCLUDE_DIR NAMES ${_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES} - PATHS ${MAGNUM_INCLUDE_DIR}/${_MAGNUM_${_COMPONENT}_INCLUDE_PATH_SUFFIX}) + HINTS ${MAGNUM_INCLUDE_DIR}/${_MAGNUM_${_COMPONENT}_INCLUDE_PATH_SUFFIX}) endif() # Add inter-project dependencies, mark the component as not found if