diff options
author | Ryuan Choi <ryuan.choi@gmail.com> | 2013-05-15 15:19:47 +0100 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2013-05-15 15:19:48 +0100 |
commit | 1c67205114eea7c94328a751ff8691b93458fe9e (patch) | |
tree | d345373ddce810542faa2dd72c3ca8bfc7bc316c /cmakeconfig | |
parent | 173daf69583ec43d0010bdafdfbefee7d23cff6f (diff) | |
download | efl-1c67205114eea7c94328a751ff8691b93458fe9e.tar.gz |
cmake : find_package should find Ecore modules using underline. Accepted
Diffstat (limited to 'cmakeconfig')
-rw-r--r-- | cmakeconfig/EcoreConfig.cmake.in | 4 |
1 files changed, 2 insertions, 2 deletions
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}) |