diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-05-22 10:44:27 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2020-05-22 16:25:07 +0200 |
commit | 194bb9901ec6da835923b3b3ba974fddb7ea35e7 (patch) | |
tree | 9d3e6001a1996e92de3abd3da9db4b4fcb465e1f /lib | |
parent | 4a0daeb0ec2349150319875edf6b6b80f0322c9d (diff) |
CMake globalize compiler optimisations flags
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libshout/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libshout/CMakeLists.txt b/lib/libshout/CMakeLists.txt index 149dc698dc..bd23066956 100644 --- a/lib/libshout/CMakeLists.txt +++ b/lib/libshout/CMakeLists.txt @@ -1,7 +1,5 @@ cmake_minimum_required(VERSION 3.0) project(shout_mixxx C) - -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_CONFIG_H -Wall -ffast-math -pthread -g -O2") find_package(OpenSSL) @@ -37,6 +35,9 @@ add_library(shout_mixxx STATIC src/tls.c ) +target_compile_definitions(shout_mixxx PRIVATE HAVE_CONFIG_H) +target_compile_options(shout_mixxx PRIVATE -pthread) + target_link_libraries(shout_mixxx ogg vorbis theora speex OpenSSL::SSL OpenSSL::Crypto) |