From 5a8e2d9a8e2c7bef80a59d420a081c04b833095c Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 9 Dec 2017 17:17:10 -0800 Subject: [speex] Fix regression for release mode import library --- ports/speex/CMakeLists.txt | 4 +++- ports/speex/CONTROL | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ports/speex/CMakeLists.txt b/ports/speex/CMakeLists.txt index 915b08226..c5c651edf 100644 --- a/ports/speex/CMakeLists.txt +++ b/ports/speex/CMakeLists.txt @@ -16,7 +16,9 @@ include_directories(win32 include) set(CMAKE_DEBUG_POSTFIX d) file(READ "win32/libspeex.def" _contents) -string(REPLACE "LIBRARY libspeex" "LIBRARY libspeexd" _contents "${_contents}") +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + string(REPLACE "LIBRARY libspeex" "LIBRARY libspeexd" _contents "${_contents}") +endif() file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libspeex.def" "${_contents}\n" "speex_nb_mode\n" diff --git a/ports/speex/CONTROL b/ports/speex/CONTROL index 00910a596..e66d3445a 100644 --- a/ports/speex/CONTROL +++ b/ports/speex/CONTROL @@ -1,3 +1,3 @@ Source: speex -Version: 1.2.0-2 +Version: 1.2.0-3 Description: Speex is an Open Source/Free Software patent-free audio compression format designed for speech. -- cgit v1.2.3