From 1e9ba61b55977bfa3976a7c6794f088bf889ad5d Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 2 Nov 2016 21:29:33 +0100 Subject: add vars BUILD_{STATIC,SHARED}[_LIBS] to cmake Only BUILD_SHARED_LIBS was there before. --- src/mxe-conf.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk index 0b374d8..b0f06e3 100644 --- a/src/mxe-conf.mk +++ b/src/mxe-conf.mk @@ -26,7 +26,10 @@ define $(PKG)_BUILD touch '$(CMAKE_TOOLCHAIN_DIR)/.gitkeep' (echo 'set(CMAKE_SYSTEM_NAME Windows)'; \ echo 'set(MSYS 1)'; \ - echo 'set(BUILD_SHARED_LIBS $(if $(BUILD_SHARED),ON,OFF))'; \ + echo 'set(BUILD_SHARED_LIBS $(CMAKE_SHARED_BOOL))'; \ + echo 'set(BUILD_STATIC_LIBS $(CMAKE_STATIC_BOOL))'; \ + echo 'set(BUILD_SHARED $(CMAKE_SHARED_BOOL))'; \ + echo 'set(BUILD_STATIC $(CMAKE_STATIC_BOOL))'; \ echo 'set(LIBTYPE $(if $(BUILD_SHARED),SHARED,STATIC))'; \ echo 'set(CMAKE_PREFIX_PATH $(PREFIX)/$(TARGET))'; \ echo 'set(CMAKE_FIND_ROOT_PATH $(PREFIX)/$(TARGET))'; \ -- cgit v0.12