summaryrefslogtreecommitdiffstats
path: root/src/widl.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-27 20:36:19 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-22 21:19:00 (GMT)
commit199cace2f8ef189d00dc75337d36e4c3dacae3df (patch)
tree77a3b0313371d1c49df117c54cfa1a95b947a26e /src/widl.mk
parent9d39a40a2b8fb37f7c70b48ddf43f094b931113a (diff)
downloadmxe-199cace2f8ef189d00dc75337d36e4c3dacae3df.zip
mxe-199cace2f8ef189d00dc75337d36e4c3dacae3df.tar.gz
mxe-199cace2f8ef189d00dc75337d36e4c3dacae3df.tar.bz2
widl: create cmake toolchain dir before writing to it
Diffstat (limited to 'src/widl.mk')
-rw-r--r--src/widl.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widl.mk b/src/widl.mk
index 1e8d8f7..e338949 100644
--- a/src/widl.mk
+++ b/src/widl.mk
@@ -27,6 +27,7 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)/mingw-w64-tools/widl' -j '$(JOBS)' install
# create cmake file
+ mkdir -p '$(CMAKE_TOOLCHAIN_DIR)'
echo 'set(CMAKE_WIDL $(PREFIX)/bin/$(TARGET)-$(PKG) CACHE PATH "widl executable")' \
> '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
endef