diff options
author | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 15:41:41 +0200 |
---|---|---|
committer | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 17:52:00 +0200 |
commit | f5254967a5b14d9b3b6747d316a82c924a87408e (patch) | |
tree | 0d2513acaf9255c8bf720637b509bf00a3e931f0 | |
parent | 2daac8ef9fb259458ec26cbc552158720c9af9c0 (diff) |
Disabled warning for using POSIX functions which are not part of the ISO C standard, used in libshout-idjc
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0056889e5a..d4dd183674 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2871,6 +2871,9 @@ if(BROADCAST) message(STATUS "Using internal libshout-idjc") add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/lib/libshout-idjc") target_include_directories(mixxx-lib SYSTEM PUBLIC lib/libshout-idjc/include) + if(WIN32) + target_compile_definitions(shout_mixxx PRIVATE __WINDOWS__ _CRT_NONSTDC_NO_WARNINGS) + endif() target_link_libraries(mixxx-lib PRIVATE shout_mixxx) else() target_link_libraries(mixxx-lib PRIVATE Shoutidjc::Shoutidjc) |