From 7df5617a4bb694cbc3f61199a0015d4d13eab0a5 Mon Sep 17 00:00:00 2001 From: Olli Date: Wed, 1 Sep 2021 18:46:54 +0300 Subject: [PATCH] cmake: remove "CMAKE" compiler definition and instead add mock "soundtouch_config.h" Add a empty mock "soundtouch_config.h" file and remove "CMAKE" compiler definition that was used in #ifdef that skipped including "soundtouch_config.h" in cmake build. This is to avoid errors about missing include file when not using autotools build. Also update version to 2.3.1 Signed-off-by: Olli --- CMakeLists.txt | 6 +++--- README.html | 6 +++++- configure.ac | 2 +- include/STTypes.h | 2 +- include/SoundTouch.h | 4 ++-- include/soundtouch_config.h | 3 +++ readme.md | 2 +- source/SoundTouchDLL/SoundTouchDLL.rc | 4 ++-- 8 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 include/soundtouch_config.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f1108b..df29e02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,13 @@ cmake_minimum_required(VERSION 3.1) -project(SoundTouch VERSION 2.3.0 LANGUAGES CXX) +project(SoundTouch VERSION 2.3.1 LANGUAGES CXX) include(GNUInstallDirs) if(MSVC) - set(COMPILE_DEFINITIONS CMAKE /O2 /fp:fast) + set(COMPILE_DEFINITIONS /O2 /fp:fast) set(COMPILE_OPTIONS ) else() set(COMPILE_OPTIONS -Ofast) - set(COMPILE_DEFINITIONS CMAKE) endif() ##################### @@ -79,6 +78,7 @@ install( include/FIFOSamplePipe.h include/STTypes.h include/SoundTouch.h + include/soundtouch_config.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/soundtouch" ) diff --git a/README.html b/README.html index f864f50..1efe7a6 100644 --- a/README.html +++ b/README.html @@ -15,7 +15,7 @@
-

SoundTouch audio processing library v2.3.0

+

SoundTouch audio processing library v2.3.1

SoundTouch library Copyright © Olli Parviainen 2001-2021


1. Introduction

@@ -603,6 +603,10 @@

5. Change History

5.1. SoundTouch library Change History

+

2.3.1:

+

2.3.0: