Skip to content

Commit

Permalink
[speex] Fix regression for release mode import library
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Dec 10, 2017
1 parent 9f0d33b commit 5a8e2d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ports/speex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

This comment has been minimized.

Copy link
@WPMGPRoSToTeMa

WPMGPRoSToTeMa Dec 10, 2017

Contributor

@ras0219-msft can you make a guideline how to check for debug/release build type? Because there are different conditions in different packages https://github.com/Microsoft/vcpkg/search?utf8=%E2%9C%93&q=CMAKE_BUILD_TYPE&type=

string(REPLACE "LIBRARY libspeex" "LIBRARY libspeexd" _contents "${_contents}")
endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libspeex.def"
"${_contents}\n"
"speex_nb_mode\n"
Expand Down
2 changes: 1 addition & 1 deletion ports/speex/CONTROL
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 5a8e2d9

Please sign in to comment.