diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2009-12-02 16:14:08 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2009-12-02 23:10:53 +0100 |
commit | eeb011aa1f93f8699041de4b8ed365883979ffb7 (patch) | |
tree | ba24a95152a6040d4d9fcc54906a89f459b1e4ca /classes | |
parent | b5b084666a7556f3c82e08890c88f195d11ae5a8 (diff) |
cmake.bbclass: support for seperate building directory
Diffstat (limited to 'classes')
-rw-r--r-- | classes/cmake.bbclass | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/classes/cmake.bbclass b/classes/cmake.bbclass index 4978421b63..d0a1844b21 100644 --- a/classes/cmake.bbclass +++ b/classes/cmake.bbclass @@ -25,4 +25,22 @@ cmake_do_configure() { -Wno-dev } -EXPORT_FUNCTIONS do_configure +cmake_do_compile() { + if [ ${OECMAKE_BUILDPATH} ] + then + cd ${OECMAKE_BUILDPATH} + fi + + base_do_compile +} + +cmake_do_install() { + if [ ${OECMAKE_BUILDPATH} ]; + then + cd ${OECMAKE_BUILDPATH} + fi + + autotools_do_install +} + +EXPORT_FUNCTIONS do_configure do_compile do_install |