summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2018-07-10 14:05:49 +0200
committerStéphane Desneux <stephane.desneux@iot.bzh>2018-07-11 08:45:36 +0000
commit2b589e939424eb2e235a07ef5a0a00c505b24f6d (patch)
tree655e7e4751ff9e48abd131f4abffe0f44c346309 /meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh
parent34ea320758041bd7104b9d19c1658a71d59516d1 (diff)
Fix cmake build with sdk inside a script
For the sdk build the cmake config file is source: sysroots/x86_64-aglsdk-linux/environment-setup.d/cmake.sh But use "alias" : alias cmake="cmake ..." Unfortunatly alias is not expand inside a script. using an environnement variable for "CMAKE_TOOLCHAIN_FILE" solve the issue. This Fix is a port of the yocto FIX 139551: https://patchwork.openembedded.org/patch/139551/ Unfortunatly this patch is not include in yocto upstream Bug-AGL: SPEC-1530 Change-Id: Ica80f66cbe976a6ccb1acb7d96b4c4ce4252d4f3 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh')
-rw-r--r--meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh b/meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh
new file mode 100644
index 000000000..64b6cf3c6
--- /dev/null
+++ b/meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh
@@ -0,0 +1 @@
+export OE_CMAKE_TOOLCHAIN_FILE="$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake"