diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-11-02 20:29:33 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2017-01-08 02:01:54 (GMT) |
commit | 1e9ba61b55977bfa3976a7c6794f088bf889ad5d (patch) | |
tree | 934ba467a3275ca4327d21134e0a5871446e5f35 | |
parent | e2fd9fe23a4a883586dbe4596352784a16cb1c5d (diff) | |
download | mxe-1e9ba61b55977bfa3976a7c6794f088bf889ad5d.zip mxe-1e9ba61b55977bfa3976a7c6794f088bf889ad5d.tar.gz mxe-1e9ba61b55977bfa3976a7c6794f088bf889ad5d.tar.bz2 |
add vars BUILD_{STATIC,SHARED}[_LIBS] to cmake
Only BUILD_SHARED_LIBS was there before.
-rw-r--r-- | src/mxe-conf.mk | 5 |
1 files changed, 4 insertions, 1 deletions
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))'; \ |