]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake.bbclass: set the modules directory correctly
authorJose Pardeiro <jpardeiro@rapyuta-robotics.com>
Fri, 17 Jun 2016 15:01:17 +0000 (17:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Jun 2016 16:12:22 +0000 (17:12 +0100)
The CMake recipes contain a mismatch between the environmental variable
which defines where the Modules are installed and the location where they
actually are. This patch fixes the environmental variable to point to the
proper folder defined according to the cmake version.

Signed-off-by: Jose Pardeiro <jpardeiro@rapyuta-robotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index e7883105daba26e4e1b4593c0ce991b89a1e66aa..6dbac2b75fab6c816e2a02f3ab80e546a74b9242 100644 (file)
@@ -74,7 +74,7 @@ set( ENV{QT_CONF_PATH} ${WORKDIR}/qt.conf )
 set( CMAKE_INSTALL_RPATH ${OECMAKE_RPATH} )
 
 # Use native cmake modules
-list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake/Modules/")
+list(APPEND CMAKE_MODULE_PATH "${STAGING_DATADIR}/cmake-\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}/Modules/")
 
 # add for non /usr/lib libdir, e.g. /usr/lib64
 set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir})