diff options
| -rw-r--r-- | meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.12.0.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.12.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.12.0.bb index 859d6a0b05..c4f3594f36 100644 --- a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.12.0.bb +++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.12.0.bb | |||
| @@ -24,12 +24,17 @@ BUILD_CXXFLAGS += "-std=c++11 -fPIC" | |||
| 24 | # BUILD_TYPE=Release is required, otherwise flatc is not installed | 24 | # BUILD_TYPE=Release is required, otherwise flatc is not installed |
| 25 | EXTRA_OECMAKE += "\ | 25 | EXTRA_OECMAKE += "\ |
| 26 | -DCMAKE_BUILD_TYPE=Release \ | 26 | -DCMAKE_BUILD_TYPE=Release \ |
| 27 | -DFLATBUFFERS_BUILD_TESTS=OFF \ | 27 | -DFLATBUFFERS_BUILD_TESTS=OFF \ |
| 28 | -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | 28 | -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ |
| 29 | " | 29 | " |
| 30 | 30 | ||
| 31 | inherit cmake | 31 | inherit cmake |
| 32 | 32 | ||
| 33 | rm_flatc_cmaketarget_for_target() { | ||
| 34 | rm -f "${SYSROOT_DESTDIR}/${libdir}/cmake/flatbuffers/FlatcTargets.cmake" | ||
| 35 | } | ||
| 36 | SYSROOT_PREPROCESS_FUNCS:class-target += "rm_flatc_cmaketarget_for_target" | ||
| 37 | |||
| 33 | S = "${WORKDIR}/git" | 38 | S = "${WORKDIR}/git" |
| 34 | 39 | ||
| 35 | FILES_${PN}-compiler = "${bindir}" | 40 | FILES_${PN}-compiler = "${bindir}" |
