From 1c67205114eea7c94328a751ff8691b93458fe9e Mon Sep 17 00:00:00 2001 From: Ryuan Choi Date: Wed, 15 May 2013 15:19:47 +0100 Subject: cmake : find_package should find Ecore modules using underline. Accepted --- cmakeconfig/EcoreConfig.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmakeconfig') diff --git a/cmakeconfig/EcoreConfig.cmake.in b/cmakeconfig/EcoreConfig.cmake.in index 26822d3e30..dc84ec4a62 100644 --- a/cmakeconfig/EcoreConfig.cmake.in +++ b/cmakeconfig/EcoreConfig.cmake.in @@ -8,7 +8,7 @@ # # When the COMPONENTS keyword was passed to find_package(), # the following variables are defined for additional Ecore modules -# such as Evas, X, Imf. +# such as Evas, X, Imf, Imf_Evas. # # ECORE_*_FOUND - System has ecore * # ECORE_*_INCLUDE_DIRS - The ecore include directories @@ -44,7 +44,7 @@ if (Ecore_FIND_COMPONENTS) foreach(_component ${Ecore_FIND_COMPONENTS}) string(TOUPPER ${_component} _COMPONENT) string(TOLOWER ${_component} _component) - set(_MODULE_PKGNAME ecore-${_component}) + string(REGEX REPLACE "_" "-" _MODULE_PKGNAME "ecore-${_component}") pkg_check_modules(PC_LIBECORE_${_COMPONENT} ${_QUIET} ${_MODULE_PKGNAME}) -- cgit v1.2.1