diff options
author | Christian Frisson <christian.frisson@gmail.com> | 2015-09-29 12:35:55 (GMT) |
---|---|---|
committer | Christian Frisson <christian.frisson@gmail.com> | 2015-09-29 12:35:55 (GMT) |
commit | 5eb94126a1e33da3646a3ad9edfa7c523a5da75f (patch) | |
tree | 115ac88085cfd3382b07d9cb12fb336bcc88ba18 | |
parent | 6a658bf6eee31481cb8c29227cf27e4605683a66 (diff) | |
download | mxe-5eb94126a1e33da3646a3ad9edfa7c523a5da75f.zip mxe-5eb94126a1e33da3646a3ad9edfa7c523a5da75f.tar.gz mxe-5eb94126a1e33da3646a3ad9edfa7c523a5da75f.tar.bz2 |
widl: generation of widl.cmake with CMAKE_WIDL indicating the path of the widl executable
-rw-r--r-- | src/widl.mk | 4 |
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 |