Fix libcds on MinGW

This commit is contained in:
Lukas W
2018-04-29 19:34:14 +02:00
parent ef7b8c68d5
commit 8b122d5a4c
10 changed files with 103 additions and 7 deletions

View File

@@ -9,6 +9,13 @@ IF(LMMS_BUILD_APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
ENDIF()
IF(MINGW_PREFIX)
# There's a bug in some CMake or MinGW versions that passes -std=c++11 when
# compiling C files (e.g. fmopl.c). Remove -Werror for plugins to work
# around this.
STRING(REPLACE "-Werror " "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
ENDIF()
INCLUDE_DIRECTORIES(
${SAMPLERATE_INCLUDE_DIRS}
"${CMAKE_BINARY_DIR}/src"