summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/widl.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widl.mk b/src/widl.mk
index 602cf29..1c7375b 100644
--- a/src/widl.mk
+++ b/src/widl.mk
@@ -24,4 +24,8 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)' \
--target='$(TARGET)'
$(MAKE) -C '$(1)/mingw-w64-tools/widl' -j '$(JOBS)' install
+
+ # create cmake file
+ echo 'set(CMAKE_WIDL $(PREFIX)/bin/$(TARGET)-$(PKG) CACHE PATH "widl executable")' \
+ > '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
endef