]> code.ossystems Code Review - openembedded-core.git/commit
cmake: extend CMAKE_MODULE_PATH instead of setting
authorRoss Burton <ross.burton@intel.com>
Thu, 11 Jun 2015 13:33:56 +0000 (14:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:57:51 +0000 (23:57 +0100)
commit2cfa8427d77f680df37c12d00125501ebe7c38a3
tree56a086d634ab2af5989c7a988109108b9e949833
parentc6fe26ade5734efb5250e00c56fdbb4095b0018b
cmake: extend CMAKE_MODULE_PATH instead of setting

Some (e.g. piglit) CMakeList.txt files will extend CMAKE_MODULE_PATH before
calling project(), which is when the toolchain.cmake file is parsed.  In this
situation the CMAKE_MODULE_PATH is overwritten, so handle this by appending in
toolchain.cmake instead of assigning.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/cmake.bbclass