widl: create cmake toolchain dir before writing to it

pull/1990/head
Tony Theodore 7 years ago
parent 9d39a40a2b
commit 199cace2f8

@ -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

Loading…
Cancel
Save