summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-09-29 14:01:05 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-09-29 14:01:05 (GMT)
commit916d43969f61a2a8b6221cdf9706afe656563666 (patch)
tree115ac88085cfd3382b07d9cb12fb336bcc88ba18
parent6a658bf6eee31481cb8c29227cf27e4605683a66 (diff)
parent5eb94126a1e33da3646a3ad9edfa7c523a5da75f (diff)
downloadmxe-916d43969f61a2a8b6221cdf9706afe656563666.zip
mxe-916d43969f61a2a8b6221cdf9706afe656563666.tar.gz
mxe-916d43969f61a2a8b6221cdf9706afe656563666.tar.bz2
Merge pull request #895 from ChristianFrisson/widl-cmake
widl: generation of widl.cmake
-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